You can add a code to your subject that makes outer connections on your web-based store open in another program tab. This can be advantageous in light of the fact that it assists with keeping clients from exploring away from your web-based store. Outer connections are URLs that immediate clients to various sites, for example, the connections remembered for virtual entertainment symbols.
Add a code to your subject’s JavaScript document
From your Shopify admin, go to Online Store > Themes.
Find the theme you want to edit, and then click Actions > Edit code.
In the Assets directory, click one of the following:
- theme.js
- theme.js.liquid
- custom.js
Paste the following code at the bottom of the file
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';
}
}
and
Click Save.
reference link
https://tinyurl.com/mtsu3tp9