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 ![]()
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:
Code editing approach (recommended): Edit theme files to add a new URL setting in the image with text section, requiring liquid and HTML skills.
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.
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.
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 ![]()
Hi, Currently taste theme doesn’t offer this option by default from theme customizer.
There are 2 options to do it
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.
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:
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!!
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. ![]()