Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #447802

    -wir wollen, im Shop (Woocommerce) bei der Produkteingabe mit Affiliate Programm im “kaufen”-Button der Link ein Neues Fenster öffnet. Wie lässt sich das einstellen? (damit sich der Kunde nicht auf der fremden Shopseite verliert)

    -we want, in Shop (WooCommerce) “Buy” at the input product with an affiliate program in the Link button opens a new window. How can this be set? (so that the customer does not lose at the strange Store page)

    #447806

    Hey Luxususer!

    Can you please post temporary admin logins or post direct link to your page so we can see the content? :)

    Cheers!
    Yigit

    #447808
    #447812

    Hi!

    Please add following code to Functions.php file in Appearance > Editor

    function add_custom_target(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('.single .cart a').attr('target','_blank');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_target');

    Best regards,
    Yigit

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