• Resolved mattce

    (@mattce)


    Hi there,
    I need to replace some of the affiliate links via jQuery based on some specific rules in the frontend. Therefore I’m trying to modify these links via:

    jQuery("a.linkClass").attr("href", "https://www.New-URL.com");

    But it seems, that thirstyaffiliates is somehow preventing these links from getting edited afterwards, I think there is some plugin-own javascript, what has a higher priority or skips further functions.

    Is there any way, that I can tell this plugin to not modify a specific affiliate link in frontend, so that I can still replace it via jQuery?

    Thanks a lot!

    • This topic was modified 5 years, 2 months ago by mattce.
Viewing 1 replies (of 1 total)
  • Hi @mattce,

    Thanks for contacting us!

    I would suggest disabling our Link Fixer module on ThirstyAffiliates > Settings > Modules. It’s a small javascript code that runs on the frontend of your site to fix any outdated/broken affiliate links. This might be in conflict when you try to use jQuery to modify your affiliate links.

    I hope this helps. Please let me know how it goes!

Viewing 1 replies (of 1 total)
  • The topic ‘Is there any class or data-attribut to skip plugin’s js execution?’ is closed to new replies.