How do I get facebook Icon to load in a new tab when clicked on?

sensoryspeciali
Tourist
7 0 2

Hi,

I am using debut theme. My facebook icon shows at the bottom of my page- when clicked on, it opens in the current tab, thus stopping shop website. I want it to load in a new tab so the website still stays up. Any ideas on how to do this?

Also, is there a way to put a heading next to the social icons, such as "stay connected?"

http://www.thesensoryspecialist.com.au

0 Likes
hardik355
Shopify Partner
107 7 15

Hi 

Please open your this file Asset -> theme.js and add code in last. 

var links = document.links;
for (let i = 0, linksLength = links.length ; i < linksLength ; i++) {
if (links[i].hostname !== window.location.hostname) {
links[i].target = '_blank';
links[i].rel = 'noreferrer noopener';
}
}


If helpful then please Like and Accept Solution.
Shopify theme and app developer.
Thanks

0 Likes