How can we help?

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

Home Forums PokaTheme support External affiliate link

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #12952
    rekorel
    Participant

    Hello there. Poka theme affiliate links go to site address / go / xxxcasino. Do we have a chance to replace this link completely?
    Instead I want to use an external link like bit.ly/xxx. If possible I would be glad if you could help.

    Thanks.

    #12959
    admin
    Keymaster

    Hi!

    You can do something like that in your child theme:

    function poka_affiliate_url_return(){
      return get_field('affiliate_link', $aff_link_id);
    }
    

    Then in your “affiliate link” field you can just add your bit.ly URLs.

    #12971
    rekorel
    Participant

    I would be glad if you could give some more detailed information. When I add it to wp-content / themes / pokatheme / functions.php, the site warns of critical error and does not open.

    #12972
    rekorel
    Participant

    I took care of it with another method, thank you.

    • This reply was modified 1 month, 2 weeks ago by rekorel.
    • This reply was modified 1 month, 2 weeks ago by rekorel.
    • This reply was modified 1 month, 2 weeks ago by rekorel.
    #12984
    admin
    Keymaster

    All the changes should me made to child theme and not to parent theme.
    This way you can update to future versions of PokaTheme more easily.

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