How to get button link to open in a new tab?

Topic summary

A user needed to modify a button in their Shopify store’s slideshow (using the Spark theme with Liquid code) to open a booking website link in a new tab.

Solutions offered:

  • Add the target="_blank" attribute to the <a> tag
  • Navigate to Actions > Edit code > Sections > slideshow.liquid file to locate and modify the relevant code

Resolution:
The original poster successfully resolved the issue independently after receiving these suggestions.

Summarized with AI on October 29. AI used: claude-sonnet-4-5-20250929.

Hi, Ive been trying to change the code on our website to have a button on a slideshow open in a new tab. I am having trouble finding what line of code to edit and with what. The button I would like to open in a new tab to our booking website is currently on the slideshow of our website’s main page. Does anyone have experience with this? I believe our code system is liquid and the websites theme is Spark_6.16_With Infinite Options App_Ash.

use this attribute target=”_blank” in tag to open link in new tab

Hi @sam_hhh ,

Please go to Actions > Edit code > Sections > slideshow.liquid file. Please send me the code, I will check and add option for you

I ended up figuring it out thank you :slightly_smiling_face:

1 Like

I ended up figuring it out thank you :slightly_smiling_face:

Hi @sam_hhh ,

You’re welcome :blush: