Skip to main content
All CollectionsAdvanced Design
Open a banner link in a new browser tab
Open a banner link in a new browser tab

A great solution when driving customers to a 3rd party website

Liam Cadle avatar
Written by Liam Cadle
Updated over 2 years ago

You may have banners or links on your EvolutionX store which will take your end user customer to 3rd party websites. The end user experience could be disrupted when they open the link as it will be delivered on same browser tab which they are using to browse your EvolutionX store.

Fear not - we have a solution! The below custom code will ensure that if a nominated web link is clicked on your EvolutonX webstore, it will open it on a fresh browser tab.

Simple enter the below custom code onto the footer block within appearance>theme options>footer block

<script>$(document).ready(function() { $('a[href*="www.enteryourwebsiteaddresshere.co.uk"]').attr('target', '_blank'); }); </script>

An example would be where you want to have a banner on your website which takes customers to this page - https://www.dams.com/desks.html

Your code would look like this;

<script>$(document).ready(function() { $('a[href*="https://www.dams.com/desks.html"]').attr('target', '_blank'); }); </script>

Did this answer your question?