jrhevron
(JR Hevron)
July 24, 2020, 7:55pm
1
Hi,
I’d like to be able to make posts on a page open up into a new window. How would I do that. I can’t figure out an “out of the box” way to do it.
Here’s the page: https://www.sadowsky.com/product-category/recently-sold-instruments/
I’d like customers to be able to click on an instrument and have it open in a new page so that they don’t have to start over again on our huge list of sold instruments.
Any tips>
thanks,
JR
LeSS
(LeSScro)
July 25, 2020, 5:18am
2
Hello,
if u don’t have option on linik to open in new tab, u will have to edit manually php.
woocommerce grid section in beaver builder plugin it seems.
OR
Jquery, something like : (i did’nt see any class or id on link “a”
Then it will be link, by link, it’s horrible
$(document).ready(function(){
$('a[href=https://www.google.com]').click(function(){
window.open(this.href);
return false;
});
});
Regards
jrhevron
(JR Hevron)
July 27, 2020, 6:38pm
3
Thanks for this! I’ll have to see if I can do it… we have so many it would be painful to do it link by link.
pross
July 27, 2020, 7:14pm
4
(function($) {
$(document).ready(function() {
$('.fl-post-module-woo-button a').each(function() {
$(this).attr('target', '_blank')
})
})
})(jQuery);
LeSS
(LeSScro)
July 28, 2020, 5:34am
5
@pross
Exacly what he need. Perfect.
Best regards