Make banner announcement link to an external site and open in a new tab

Dave104
Visitor
1 0 0

Hello, Is there anyway to make a link from the banner announcement open in a new tab. I'm linking to an external site but want to make it easier for people to find their way back. 

Thanks  

Replies 3 (3)

ShanifAtApteo
Shopify Partner
35 3 5

Hi @Dave104, glad to help you with your question. I’m sure, my given answer will help to solve your problem by following given steps


Go to Online Store > Customize > header > announcement Bar Text

And paste this code by replacing “yourlink.com” with your desired link

<a href="https://yourlink.com" target="_blank">Announcement bar link</a>

 

Hopefully, that solves your problem. If not, please let me know if you're seeing any other issues.

Shanif Dhanani, CEO and data scientist at Apteo
- Was I able to help? Click Like to let me know!
- If I was able to answer your question, click Accept as Solution
- Want to increase your customer lifetime value with A.I.? Check out Apteo

Michal17
Shopify Partner
835 73 175

Hey there,
You need to update the HTML code to open the link in the new tab.
We can make the link dynamic for you so you can update it from the theme editor.
Please contact me on my email to get further help.

MadewellMarkets
Visitor
1 0 0

Hi @Michal17 , is there a specific tag we can put to not use the absolute prepended url in the case we want to customize an announcement to send out two external links based on the text in the message?  Thanks!