I want to make website links from the listings open in a new tab.
I have added this code to the Display > Format in the website attribute.
However, it still won’t open in a new tab.
I can see in the HTML code that it’s wrapped it in a an onclick javascript, but it’s not working.
How can I fix this?
<a class="weblinkbutton" href="%value%" target="_blank" rel="nofollow">Book Online</a>
Hi,
I’ve tested your snippet locally, and everything works as intended, please take a look at the screencast: How to open links in a new tab | Loom.
To rule out any conflicts, please temporarily disable third-party plugins and other customizations and test the links again.
Please let me know if the issue persists, and we will investigate further.
Thanks for checking that it should work.
I tracked it down to a plugin that opens links in an external tab. They must have been working against each other.
Thanks for your help.
1 Like