How to add a dynamic  link to image or text

How to add a dynamic link to image or text

Log in or Sign up to ensure access to FREE code across multiple devices.

Helpful Free links

Migrating to Shopify Transferring Domain to Shopify Master sections and blocks Free Essential tools Custom App Creation Shopify theme templates Add custom CSS to themes Master product variants in Shopify Free Shopify Themes How to customize Shopify themes Automate your store processes Improve store's search Free apps to enhance your store Upload and manage files Facebook ads for your Shopify Shopify Support Stay updated with Shopify changes Join Shopify Community for free help

Add a dynamic link, meaning unique link, to any of the image or text in your website using inspect tool for developers. Shopify uses forloop, and if you change something to one place, it will definitely apply to all, but we can change that by using the json schema. See video for more information.

You can see the documentation for the Chrome DevTools here. For Mozilla firefox, you can check the documentation right here

 

 

Step 1: Find where to place the href

Step 2: Open the Shopify code editor

Step 3: Locate the file for the html

Step 4: Find the html inside the file

Step 5: Add the href code

Step 6: Add a dynamic link

Copied!

Struggling with instructions?

Don't worry, we've got you covered for a reasonable price.

Contact us through "Chat with us" for a quote.

Relax as we handle it for you!

Back to blog

6 comments

Thank you for your video. I entered the code for Multi-column image and it worked. I tried it for Image With Text. If I make the image clickable, it works. If I try to make the text clickable, the text becomes underlined in blue. Is there a way to prevent the text from being underlined in blue? Do I have to add the CSS text-decoration: none ?
Thanks.

Diane Meyer

Leave a comment