How can we help?

If you are looking for support for our PokaTheme, this is the place!

Home Forums PokaTheme support Casino link DON’T open in new tab

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #16666
    MitchellHax
    Participant

    Hello,

    Currently my casino affiliate links open automatically in a new tab, but this causes AdBlock to block a link like this one: https://toponlinecasinonederland.nl/casino/jacks-casino/
    If you have adblock on and click on the affiliate link it won’t do anything.
    Solution is to not make it open in a new tab.
    How can I make my links open in the same window?

    #16670
    admin
    Keymaster

    Hi Mitchell,

    Unfortunately in PokaTheme v3 the attribute target=”_blank” for each link cannot change globally, you have to go to each shortcode/template you use and remove this attribute.
    In PokaTheme v4 all these attributes are handled globally and can change them with a hook.

    #17269
    Lachlan
    Participant

    Hello, I am currently facing same issues and have V4. How can I change the option so the links will open in the same tab? Appreciate any help. Thank you

    #17276
    admin
    Keymaster

    Hi Lachian,

    You can add the following snippet in your child theme file: “functions.php”

    function your_custom_link_atts() {
        return 'rel="nofollow"' ;
    }
    add_filter( 'poka_affiliate_link_atts', 'your_custom_link_atts' ); 
    
    #17297
    Lachlan
    Participant

    Thank you

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