BACK TO DIRECTORY

Thumbnail Link for WooCommerce

by Christian Zimpel

0.0
(0 ratings)

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" and rel="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 );

Screenshots

The External link field in the product data.

The External link field in the product data.

Plugin Details

Active Installs
10
Total Downloads
6,595
Version
1.1.0
Requires WP
6.2
Requires PHP
7.4
Tested Up To
7.1.4
Added
2020-06-08
Last Updated
2026-10-24 6:42pm GMT

Ratings

5
0
4
0
3
0
2
0
1
0