• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2665

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

How To Make WooCommerce Shop Page Images Link To Other Websites

Good question asked recently about making the shop page product images link to external sites rather than the single product page.

This tutorial provides 2 different solutions as well as a detailed explanation of how the code works in each snippet.

Watch Demo Video #

Shows the product image on the shop page linked to a external website when external URL added otherwise the image links to the single product page.

When the product image on the category archive page is clicked, the image links to the single product page.

Code Installation #

There’s only 2 steps relating to usage of the code in the download folder :

Step 1 : Copy & paste 1 of the 2 code snippets from the functions.php file to the end of your child themes functions file.

Register or login to access the download folder :

Register for full access

Custom Fields Product Image WooCommerce

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems