So when someone clicks on one of my buttons, it opens a new tab with the link.
I don’t seem to find an option for it under the button.
Goal: make theme buttons open links in a new browser tab.
Proposed solution: edit the image-with-text.liquid template under Online store > Themes > Edit code, and add the attribute target=“__blank” to the button’s anchor () tag. Save changes.
Results: Confirmed working for Dawn (original requester) and another user reported success. Screenshots and a code snippet are central to the solution.
Mixed outcomes: Users on Sense and Craft themes reported it did not work; one was asked to share a code screenshot for troubleshooting, but no follow-up solution was posted. Another user tried to make a banner click open a new tab and it didn’t work; assistance requested with a screenshot attached.
Scope question: One user asked whether this change applies to every button or only one specific button; no clear answer was provided.
Status: Partially resolved—effective for some themes, unresolved for Sense, Craft, and banner use cases. Key open items: theme-specific implementation details and per-button vs global control.
So when someone clicks on one of my buttons, it opens a new tab with the link.
I don’t seem to find an option for it under the button.
You can do that by editing image-with-text.liquid file of your theme in Online store > Themes > Edit code > open image-with-text.liquid file, add this part below in a tag of button and Save the file
target="__blank"
I tried this solution with the Sense theme, but it didn’t work.
Hi @mjerez
Could you take a screenshot of the code that you added?
Hi, I want to to the same thing. When someone click on my Banner it should open a new tab, I have changed the code as you have described, but it doesn´t work. Could you please assist?
This did not work with the Craft theme. Does anyone know of a solution?
Hello – if I do this will this apply to every button? I only want to do it for one button in particular. Thanks.
Worked perfectly! Thank you so much for the tip