Jan 06, 2020 12:25 pm
Al the url's in our forum don't seem to open in a new tab.
Please advice what to do.
example url ==> https://www.yotpo.com/google-shopping-guide/
4 Replies
Jan 06, 2020 1:30 pm
Hi @pikapower,
Put the following js code in your active theme JS files:
jQuery(document).ready(function(){jQuery("#wpforo #wpforo-wrap .wpforo-content a:not([href^=' https://wpforo.com '])").attr("target","_blank");});
Just change the red marked code and use your domain instead of the https://wpforo.com .
This article should be helpful for you: https://www.collectiveray.com/add-javascript-to-wordpress
Jan 06, 2020 4:37 pm
Jan 06, 2020 8:00 pm
tried that and that works better, only embedded urls seems to open in same window
like this one:
https://www.askmathijs.com/e-commerce-events-2020/