Search the site:

How to make WooCommerce external product links open in a new window?

Facebook group question:

Righto, how on Earth do I make external product links open in a new tab? I’ve tried a range of different plugins, but none of them are quite what I’m after. I literally just want to add target=”_blank” to the existing external product link.

Answer: Joanne Waltham You have to copy the single-product/add-to-cart/external.php template to your theme folder and then add your target blank to this template
> thanks I’ll give that a shot. Will it need the same folder path once inside the theme? Or just a woocommerce folder?
> Same folder path

Browse more in: Code Snippets, WooCommerce How Tos, WooCommerce Tutorials
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
from purchased

Subscribe for more offers

Black Friday & Cyber Monday SUPER SALE ALL WEEK:
Grab 40% OFF on plugins and 50% OFF on Bundles
0
Would love your thoughts, please comment.x
()
x