Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi all,
I'm trying to make slideshow images clickable for both desktop and moblie images, in the Sleek theme. I don't want the button to show and when I do put the link in, but no button label, it doesn't let the image still link to that page.
Note for my slideshow.liquid theme code - it does not have the code that starts with:
<div class="slideshow__text-wrapper banner__content banner__content ...
My website is https://maxxherb.com/
Any help would be appreciated.
Thank you!
To make your slideshow images clickable you will have to modify the liquid schema to let you add links from the customizer or you can directly wrap the slideshow images inside a tag with particular links you want user to direct to.
Thank you, do you know what code you would generally use to do that. I've tried a few different ones but they would only link back to the homepage:
<a href="{{ block.settings.image_link }}" style="display: block;position: absolute;width: 100%;height: 100%;left: 0;top: 0;z-index: 999;"></a>
<a href="{{ block.settings.link }}" class="slideshow__action-full"
style="position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
z-index: 99;
display: block !important;">
</a>
<a href="https://maxxherb.com/collections/shop-all-products">
<img src=\"{{ slide.image | img_url: 'large' }}\" alt=\"{{ slide.alt }}\">
</a>
These codes would only allow it to link to the homepage even when I would change the link in the customizer.
Since you are using a paid theme, please send me collaborator access to your store or add me as a staff whatever suits you best and I can look it up for you and make necessary edits
Thank you for the offer. The developer got back in touch with me and they were able to make that customization. Thank you again!
Thank you for notifying about this.
Good luck on your store and your business 👍
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025