Liquid, JavaScript, themes, sales channels
Hi
I would like my social links that is on the header to be open in a new tab. I dont know much about coding.
I've seen other similar threads but it is all about footer codes and I couldn't find the "target" for the social links. I read that it has to be set to blank or something but can't seem to find it.
Thank you in advance!
<p>Check out <a href="https://www.freecodecamp.org/" target="_blank">freeCodeCamp</a>.</p>
Hi,
this is a example
refer this code & edit your code
add this to your theme.liquid
at the bottom
<script>
jQuery('a[href^="http"]').not('a[href^="{{ shop.url }}"]').attr('target', '_blank');
</script>
it works for me supply theme
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024