• Resolved iHuman

    (@ihuman)


    Hi! There is a conflict with the countdown widget and the theme I’m using. It also uses jquery countdown and since both ‘data-countdown’ they conflict. The result is the countdown widget flickers every second. If I block out the code in the theme, it works. Is there a way to modify sportspress.js so
    $("[data-countdown]").each(function() {
    is something else? Suggestions?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi @ihuman ,

    Isnt it easier to create a child theme and alter the code of the theme? Otherwise you will not be able to update your SportsPress plugin.

    Thanks,
    Savvas

    Thread Starter iHuman

    (@ihuman)

    I did create a child theme – but it still calls the js functions of the parent theme.

    @ihuman

    Then you did not implement it properly.

    Hi!

    If you want new scripts you need to dequeue the parent theme scripts. You can dequeue plugin scripts as well if you want to. This allows you to add new scripts with your own selectors.

    Unfortunately, the exact code is beyond the scope of our support, but if you need any general help let us know.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘data-countdown issue’ is closed to new replies.