I have a question:
Can i use an external link with the featured product image? So a user clicks on the image and gets taken to the external url i specify? For example an amazon page.
If possible, how? I tried adding the link url in the image properties but it resets to the default image path.
Unfortunately, you can’t do this on Abundance theme without modifying woocommerce-config files. A workaround is to insert an image on the product editor like this.
<a href="https://kriesi.at/support"><img class="alignnone size-full wp-image-743 noLightbox" title="Abducted (5)" src="http://localhost/kriesi/abundance/wp-content/uploads/2012/04/Abducted-5.jpg" alt="" width="400" height="200" /></a>
Note: Don’t forget to change the anchor directory and add the “noLightbox” class.
Thanks for your reply. Unfortunately i have no idea how to do this? Could you explain in newbie language… ?
If you mean the actual product image, like Ismael said it would require editing the theme files which we wouldn’t be able to direct you in.
However, if you are just looking to add an external product, you can change the product type to External/Affiliate product the the Product Type box when viewing your product editing page. This will then give you the option of putting in your own Product URL and to add your own text for the “buy” button.
The code above, is what you would put in the HTML tab of your product description to get an image inserted in with a link. You can also do this via visual editor by inserting an image and then applying a link to that image.
The topic ‘External link with Featured Image’ is closed to new replies.