Add a link to an image (Turbo Theme)

MaxCosta
Trailblazer
157 0 48

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
571 136 162

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 am an eCommerce and Marketing Technology consultant based in Toronto, CANADA.
- To inquire about consulting work availability, please send me a Private Message.
- For Shopify Tutorials, Subscribe to my YouTube Channel.
0 Likes