FROM CACHE - en_header

Menu Item Open in New Tab

Jacob_Yew_Dell
New Member
1 0 2

I would like to have a Menu Item open up in a new tab.  It will be the button that returns you to our actual website.  Can this be done?  I am able to link text to new tabs but can't seem to find the magic button that allows me to do so with a menu item.


Thanks!

Jacob

Replies 5 (5)
ZestardTech
Shopify Expert
3559 589 824

Hello There,

I found this guide on how to have external links open in a new tab.

https://help.shopify.com/themes/customization/navigation/open-external-links-in-new-browser

also I found this snippet from Google interesting as well.

The short answer is: just add a target="_blank" attribute to your links (anchor tags). Now when your visitors click that link, it will open in a new window or tab (depending on which web browser they are using and how they configured that browser).

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing
niks26
New Member
2 0 1

Can some one please help on this.

 

As mentioned above to add the target attribute as blank. Can someone please let us know where to add this

Azza2
Tourist
16 0 2

Same here.. Easy to advice to ad the target="_blank", but where? I am trying to make products to open in a new window, what code page I need to ad the attribute?

camiladexter
Tourist
5 0 1

Hi ZestardTech,

 

I have applied guideline on my website. Added _blank attribute in menu link but it is not execute properly. What will be the reason of this?

IrishMugger
Shopify Partner
6 0 0

in the navigation code where the <a href is  right after the ending " of that, you add a space then add target="_blank"

@BKThemes