According to the usability studies, opening a new link in the same browser is a good practice. But in many instances, the webmasters prefer to open a link in another tab, like for external links. If the external link opens up in the same tab, the user will leave your website. If they want to return back, they will need to hit Back button. To avoid the users leaving your website and going to any external link, we are providing you a simple JS code. Follow the instructions below that will not let your website disappear from the users’ eyes.

Go to Storefront Design > Design Options > Scripts. Here you will add the code shown below:

<script>
$(function() {
    $(‘a[href=”http://www.SITE.com”]’).attr(‘target’, ‘_blank’);
})
</script>
By / Published On: July 19th, 2017 /

Subscribe To Receive The Latest News

Curabitur ac leo nunc. Vestibulum et mauris vel ante finibus maximus.

Thank you for your message. It has been sent.
There was an error trying to send your message. Please try again later.

Add notice about your Privacy Policy here.