Solved

How can I add a clickable- function to this image?

chowpex
Tourist
7 0 1

Hey there! 🙂

 

How can I add a linking function to this picture?

https://gyazo.com/7af7cefeb093f53a749ab7c206ec1c40

 

And this is the html thing with google chrome

https://gyazo.com/b6a1439c743a02f0de612c1e7da84b65

 

I want to link this picture directly to the product, but I can't find this function at shopify.

I'm using venture theme by the way.

 

Thank you guys! 🙂

 

Accepted Solution (1)

JoesIdeas
Shopify Expert
2222 202 592

This is an accepted solution.

If you want the whole image clickable you can wrap it in an anchor tag, for example:

<a href="https://PUT_LINK_HERE">
<img src="THIS_IS_THE_IMAGE">
</a>

You can find the code in your theme editor. From the screenshot you sent, I'm guessing this might be in a Snippet called image-content.liquid or something similar.

 

If you change a template file like that the link would apply to all instances of that section. If that's the only instance that's fine, but if you have multiple you're probably better off adding a custom link field to this section so can add a link from the Customize Theme section.

 

*Assuming there's no link field in the Customize Theme area, if there is, then you can just paste the link 🙂

• Creator of Order Automator (automate tagging, fulfillment, Amazon, notifications + more)
• Shopify developer for 10+ years, store owner for 7 years
• I also make guides like Shopify Automation Tips and How to Deal with Fraud / Chargebacks

View solution in original post

Replies 6 (6)

JoesIdeas
Shopify Expert
2222 202 592

This is an accepted solution.

If you want the whole image clickable you can wrap it in an anchor tag, for example:

<a href="https://PUT_LINK_HERE">
<img src="THIS_IS_THE_IMAGE">
</a>

You can find the code in your theme editor. From the screenshot you sent, I'm guessing this might be in a Snippet called image-content.liquid or something similar.

 

If you change a template file like that the link would apply to all instances of that section. If that's the only instance that's fine, but if you have multiple you're probably better off adding a custom link field to this section so can add a link from the Customize Theme section.

 

*Assuming there's no link field in the Customize Theme area, if there is, then you can just paste the link 🙂

• Creator of Order Automator (automate tagging, fulfillment, Amazon, notifications + more)
• Shopify developer for 10+ years, store owner for 7 years
• I also make guides like Shopify Automation Tips and How to Deal with Fraud / Chargebacks
HarmanKardon
Tourist
19 0 1

@JoesIdeas wrote:

If you want the whole image clickable you can wrap it in an anchor tag, for example:

<a href="https://PUT_LINK_HERE">
<img src="THIS_IS_THE_IMAGE">
</a>

You can find the code in your theme editor. From the screenshot you sent, I'm guessing this might be in a Snippet called image-content.liquid or something similar.

 

If you change a template file like that the link would apply to all instances of that section. If that's the only instance that's fine, but if you have multiple you're probably better off adding a custom link field to this section so can add a link from the Customize Theme section.

 

*Assuming there's no link field in the Customize Theme area, if there is, then you can just paste the link 🙂


Hi ! Thanks for the solution. Do you know how to use this function but instead, using another picture for mobile and Desktop ?

 

Kind regards,

Chrisc1623
Tourist
7 0 3

Thanks Joe. I have added the Image Link into the schema so that I can have separate links for each of my images. However, I need to add the HREF and am unsure how to do this in a way that ensures it utilises the link selected in the Customise Theme. 

Your help would be much appreciated.

Chris 

 

made4Uo
Shopify Partner
3805 713 1128

Hi @Chrisc1623,

 

You can do it by simply following the instructions. The video will teach you how to add any links to any element in your Shopify website. 

Volunteering to assist you!  Likes and Accept as Solution  is highly appreciated.✌
Coffee fuels my dedication. If helpful, a small Coffee Tip would be greatly appreciated.
Need EXPERIENCED Shopify developer without breaking the bank?
Hire us at Made4Uo.com for quick replies.
Stay in control and maintain your security by avoiding unnecessary store access!
Iammaxx0425
Tourist
4 0 2

Thank you for this video, it's very helpful 😊

Evo2
Visitor
1 0 0

hi

how i can make the ad click to action to this website https://publisher.linkvertise.com/ac/950298

my store www.evocommerce-m.com

thanks

Screenshot (13)1.png