I am using woocommerce selling my albums and individual songs on wordpress. I am using the Soonar Skullz theme, that I bought recently.
I would like visitors to be able to add single songs to cart, by clicking the "Buy" link behind the songs in the playlist. But somehow it always opens the link in a new tab. I changed some html of the single-album.php file and removed the target_blank.. but it still does not seem to function. Something seems to reset the target, as google chrome still shows the target_blank as existing.
I am looking forward to hear from you, best regards, Julian / AL Page
I am using woocommerce selling my albums and individual songs on wordpress. I am using the Soonar Skullz theme, that I bought recently.
I would like visitors to be able to add single songs to cart, by clicking the "Buy" link behind the songs in the playlist. But somehow it always opens the link in a new tab. I changed some html of the single-album.php file and removed the target_blank.. but it still does not seem to function. Something seems to reset the target, as google chrome still shows the target_blank as existing.
I am looking forward to hear from you, best regards,
Julian / AL Page
Hi Julian,
Please try this.
Go to wp-admin>theme options>custom css/js
And copy this code in the custom js field (Not the custom css field)
$('a[href*="?add-to-cart="]').attr('target','_self');
Thanks,
Alexandre from the Sonaar.io Crew