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

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 Partner
2428 225 653

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 [auto tag, fulfill, connect FBA, daily jobs]
• Co-Creator of Product Automator [suite of features for products / collections]
• Shopify developer for 10+ years, store owner for 7 years
• Blog: Shopify Tips, Guides, and Automation Tools

View solution in original post

Replies 6 (6)

JoesIdeas
Shopify Partner
2428 225 653

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 [auto tag, fulfill, connect FBA, daily jobs]
• Co-Creator of Product Automator [suite of features for products / collections]
• Shopify developer for 10+ years, store owner for 7 years
• Blog: Shopify Tips, Guides, and Automation Tools
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
3856 717 1197

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. 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free
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