All things Shopify and commerce
Hi, I want to create a slideshow banner with 2/3 banners but I can't work out how to make the whole banner clickable. Tried a couple of things but not working. I have the Dawn theme.
Solved! Go to the solution
This is an accepted solution.
You'll need to do some custom coding to achieve this. Navigate to Online Store > Themes > "..." > Edit Code. Open the Section file titled "slideshow.liquid". Around line 157, you'll find something like:
<div class="slideshow__text-wrapper banner__content banner__content--{{ block.settings.box_align }} page-width{% if block.settings.show_text_box == false %} banner--desktop-transparent{% endif %}{% if settings.animations_reveal_on_scroll and forloop.index == 1 %} scroll-trigger animate--slide-in{% endif %}">
Make a new line break after this and add the following.
<a {% if block.settings.link %}
href="{{ block.settings.link }}"
{% else %}
role="link" aria-disabled="true"
{% endif %}
style="position: absolute; height: 100%; width: 100%;"
>
Here is the tricky part... You have to close this in the right place. Scroll down about 30 lines to about 189 and look for:
{%- endif -%}
</div>
Make a new line break below the </div> and add:
</a>
Final closing part should look like:
{%- endif -%}
</div>
</a>
You should now be able to add slides to your slideshows in the front end and be able to click the entire image instead of JUST the button.
This is an accepted solution.
You'll need to do some custom coding to achieve this. Navigate to Online Store > Themes > "..." > Edit Code. Open the Section file titled "slideshow.liquid". Around line 157, you'll find something like:
<div class="slideshow__text-wrapper banner__content banner__content--{{ block.settings.box_align }} page-width{% if block.settings.show_text_box == false %} banner--desktop-transparent{% endif %}{% if settings.animations_reveal_on_scroll and forloop.index == 1 %} scroll-trigger animate--slide-in{% endif %}">
Make a new line break after this and add the following.
<a {% if block.settings.link %}
href="{{ block.settings.link }}"
{% else %}
role="link" aria-disabled="true"
{% endif %}
style="position: absolute; height: 100%; width: 100%;"
>
Here is the tricky part... You have to close this in the right place. Scroll down about 30 lines to about 189 and look for:
{%- endif -%}
</div>
Make a new line break below the </div> and add:
</a>
Final closing part should look like:
{%- endif -%}
</div>
</a>
You should now be able to add slides to your slideshows in the front end and be able to click the entire image instead of JUST the button.
Hi,
I tried to do this and it works however it messes up the other slideshows that have a container (makes it off center and entire text is underlined) it comes up like this.
any assistance would be helpful
Worked great, thanks!
Is some one looking for a video instructions to add this feature
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025