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 10 posts - 1 through 10 (of 10 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 3 years, 1 month ago by rekorel.
    • This reply was modified 3 years, 1 month ago by rekorel.
    • This reply was modified 3 years, 1 month 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.

    #14746
    Kernel
    Participant

    Hi, I have the same problem, but I didnt find this code? where should i look?

    and I have a lot of affiliate links, If I change one with bit.ly which one ll change?

    • This reply was modified 2 years, 7 months ago by Kernel.
    #14748
    Kernel
    Participant

    May I ask a question, how did you solve ?

    #15548
    Steve Styles
    Participant

    Also need a solution for this since hidden links do now work with my tracking system.

    i get the error:
    Your PHP code changes were rolled back due to an error on line 130 of file wp-content/themes/pokatheme/inc/addons/sc-table-list.php. Please fix and try saving again.

    Object of class WP_Post could not be converted to string

    Any solution to this?

    #15579
    admin
    Keymaster

    Hi Steve,

    Have you made any changes to this file and you are getting this error?
    If you need any help with this let’s continue our discussion via email or to a new topic.

    #17262
    Media
    Participant

    Hey

    Could you specify which file the code should be added to? I tried adding it to functions.php but nothing changed

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