Open external link from my footer menu in a new tab

Highlighted
Shopify Partner
1281 169 403

Can't help if we can't see the site. 

If my solution helped you, please like and accept as solution!
If you'd like to make any edits to your store, please send me a personal message and we can discuss what you'd like to accomplish :D
0 Likes
Highlighted
Tourist
4 0 1

Hah sorry! shop.connersclinic.com

0 Likes
Highlighted
Shopify Partner
1281 169 403

You can put this at the bottom of theme.liquid:

 

<script>
$('a[href="https://connersclinic.com"] ').attr('target','_blank')
</script>

I assume that's the link you're talking about.

If my solution helped you, please like and accept as solution!
If you'd like to make any edits to your store, please send me a personal message and we can discuss what you'd like to accomplish :D
0 Likes
Highlighted
Tourist
4 0 1

Yes that's the link! Unfortunately it's not working for me. I've placed it at the end, before </body> and before </head> but it doesn't change the link.

0 Likes
Highlighted
Shopify Partner
1281 169 403

Try putting it in your theme.js file in your assets folder at the top of the file without the script tags, it's working when I run it in the console. If it doesnt work this time I'll request access to your theme and change it for you in html rather than javascript. I just didn't want to walk you through tracking your navigation portion of your theme down, ideally this should be done through HTML only.

If my solution helped you, please like and accept as solution!
If you'd like to make any edits to your store, please send me a personal message and we can discuss what you'd like to accomplish :D
1 Like
Highlighted
Tourist
4 0 1

That did it! Thank you so much!!

0 Likes