Add a link to an image (Turbo Theme)

MaxCosta
Trailblazer
152 0 47

Hello to the entire Shopify community

I want to integrate a link to an image but my theme does not allow it.

Link of my website : https://kv1dhs1lhphffmlr-1196425333.shopifypreview.com

Sans titre.png

The gif, just below the slider banner. This is the element in which I would like to enter the link: "https://blush-conceptstore.com/collections/soldes"

 

I really tried everything I can't do it ...

Thank you very much to all in advance

 

 

0 Likes
Nick_Marketing
Shopify Partner
266 49 66

Hi Max,

Although my solutions may not be elegant (uses a bit of jQuery), it does the trick.


Add this code at the bottom of the  index.liquid file:

 

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>  
$(".gf_image").css('cursor', 'pointer').click(function() {
    window.location = "https://blush-conceptstore.com/collections/soldes";
});
</script>

 

You might need to add the correct class . or id # for the element

- I help businesses with eCommerce and Marketing Technology integrations.
- For consulting work inquiries, please send me a Private Message.
- Presently working in Toronto, CANADA.
0 Likes