Site logo

[Support request] Open woocommerce “buy” buttons in a new tab instead of the same tab.

Home Forums Support [Support request] Open woocommerce “buy” buttons in a new tab instead of the same tab.

Home Forums Support Open woocommerce “buy” buttons in a new tab instead of the same tab.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2438564
    Asif

    Currently when a visitor clicks the “buy” button in my WooCommerce product page, the link opens in the same tab, because these are affiliate links, I need it to open in a NEW tab. Please help me do this.

    #2438856
    David
    Staff
    Customer Support

    Hi there,

    see this stack reply here:

    https://stackoverflow.com/a/54924431

    That PHP Snippet will add the target="_blank" to external product buy buttons

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.