Solved

How to make my button links open in a New Tab? Dawn Theme

LSAccounting
Trailblazer
183 1 22

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.

Shopify Community MHS.png

 

By L&S Team
Accepted Solution (1)

Dan-From-Ryviu
Shopify Partner
7726 1506 1514

This is an accepted solution.

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"

Screenshot 2023-08-15 at 15.29.18.png

 

- Helpful? Like and Accept solution or Buy me a coffee
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look
- Enjoy 1 month of Shopify for $1. Sign up now

View solution in original post

Replies 5 (5)

Dan-From-Ryviu
Shopify Partner
7726 1506 1514

This is an accepted solution.

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"

Screenshot 2023-08-15 at 15.29.18.png

 

- Helpful? Like and Accept solution or Buy me a coffee
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look
- Enjoy 1 month of Shopify for $1. Sign up now

LSAccounting
Trailblazer
183 1 22

@Dan-From-Ryviu 

 

Omg, it actually worked! 

 

Thank you.

By L&S Team
mjerez
Visitor
1 0 0

I tried this solution with the Sense theme, but it didn't work.

Dan-From-Ryviu
Shopify Partner
7726 1506 1514

Hi @mjerez 

Could you take a screenshot of the code that you added? 

 

- Helpful? Like and Accept solution or Buy me a coffee
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look
- Enjoy 1 month of Shopify for $1. Sign up now

mrbicho
Visitor
2 0 0

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? Bildschirmfoto 2024-04-03 um 01.33.42.png