How can I link an image to a product in Taste Theme?

Topic summary

A user needed to link an image from the “Image with text” section to a product page in the Taste theme, which doesn’t support this functionality by default.

Solutions offered:

  1. Code editing approach (recommended): Edit theme files to add a new URL setting in the image with text section, requiring liquid and HTML skills.

  2. jQuery workaround (not best practice): Add custom liquid code with jQuery that wraps images in links, though this only works for one section on the homepage.

  3. JavaScript solution (accepted): Insert a script in the theme.liquid file just above the </body> tag that automatically links images to specified URLs.

Resolution: The issue was resolved using the JavaScript solution provided by one of the community members. The original poster confirmed the problem was solved and thanked the contributors.

Summarized with AI on November 13. AI used: claude-sonnet-4-5-20250929.

Hey, I’m trying to link the image in a “Image with text” section to a product. Any ideas how to do that?

Using “Taste” theme, website URL: https://cringe.bg/

Thanks :slightly_smiling_face:

Hi, Currently taste theme doesn’t offer this option by default from theme customizer.

There are 2 options to do it

  1. Edit theme code> add new settings of type URL in the image with text section then use this new URL for image element it requires liquid and HTML skills.

  2. A short cut to do this which isn’t not recommend but do the job you need
    Goto theme customizer and add new section then select custom liquid
    then add the following code:


replace google.com with your desired URL.

Again this is not the best practices.

This code will work for only the one section on the home page.

Hi @cringebg

Follow these Steps:

  1. Go to Online Store
  2. Edit Code
  3. Find theme.liquid file
  4. Add the following code just above tag

If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!

Best Regards,
Makka

Thanks! Have a happy new year!!

1 Like

Thanks for your help! The person commenting before you solved my problem so I didn’t try this solution, but I appreciate the effort! Have a happy new year!

Thank you. you are welcome. Happy new year to you too. :slightly_smiling_face: