Thumbnail Link for WooCommerce
v1.1.0Christian Zimpel · 2020年6月8日 上架
Link product images in your shop to any external URL – perfect for affiliate products.
- 正在使用
- 10+
- 评分
- 暂无
- 累计下载
- 6,753
- 最近更新
- 2026年10月25日
需要 WordPress 6.2+已测试到 7.1.5PHP 7.4+
贡献者
截图
By default every product image in your WooCommerce shop links to the product page. This plugin adds an External link field to each product. Fill it in and the product image and title in the shop link straight to that URL, opened in a new tab.
Typical use cases:
- Affiliate products (Amazon, Awin, Digistore24 …)
- Products that are sold on another platform
- Teasers that should lead to a landing page
Features
- One extra field in Product data General.
- Works with classic shop templates and with block themes (Product Collection block).
- External links get
target="_blank"andrel="noopener nofollow". - Products without an external link behave exactly as before.
- Compatible with High-Performance Order Storage (HPOS) and the Cart/Checkout blocks.
- Lightweight: no settings page, no database tables, no tracking.
For developers
Change the link attributes with the filter tlfw_link_attributes, for example to mark affiliate links as sponsored:
add_filter( 'tlfw_link_attributes', function ( $attributes, $product ) {
$attributes['rel'] = 'noopener sponsored';
return $attributes;
}, 10, 2 );
