Open external link from my footer menu in a new tab

Astronaut
952 116 219

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

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
New Member
4 0 0

Hah sorry! shop.connersclinic.com

0 Likes
Astronaut
952 116 219

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 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
New Member
4 0 0

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
Astronaut
952 116 219

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 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
New Member
4 0 0

That did it! Thank you so much!!

0 Likes