Support » Plugin: Football Pool » Countdown shortcode not working

  • Resolved spaniole


    Hi, it seems that the shortcode [fp-countdown] does not work properly, the other shortcodes seems to work very nice, but nothing appears when the [fp-countdown] is selected.
    Related to FP 2.6.5. Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author AntoineH


    The shortcode works fine on my install. Could be a conflict with your theme or other plugins. Can you show me the page where you set the counter?

    Hi, I used the same theme for UEFA Euro 2016 without problems.
    Here by link to the site ->
    In the right column you will see the Countdown wigdet only showing the match, not the countdown time. It is the same inserted into pages.

    Plugin Author AntoineH


    I noticed on your page that a javascript error is logged in the console: “Uncaught ReferenceError: FootballPool is not defined”.

    In your case this means that the javascript file is not yet loaded when the function is called. So, I looked a bit further in your HTML source and saw that you defer the loading of javascript files. Disable the plugin that is causing this problem, or try excluding my javascript files from this plugin.

    • This reply was modified 10 months, 3 weeks ago by  AntoineH.

    Hi, I have set “defer” to “async” in my theme’s functions.php file, but that did not help. I have no plugins that defer javascripts, it was only set in the theme’s functions.php file. Exactly same setup was used for UEFA Euro 2016, but of course, plugins and themes has been updated since then. I have concluded that it is the theme, that makes all the trouble and not your plugin, sorry for making your some noise.

    Just for your info, I took the 2 year old theme (same as now, but without updates), and now it is working like a charm. Just one more question, how to get rid of the seconds in the countdown? Thanks.

    Overall it was the “defer” that was the reason for the missing countdown, so you were completely right – thumbs up.

    Plugin Author AntoineH


    The seconds in the countdown can’t be removed without changing the minified javascript file. I will add some extra formats in the next pool version.

    Thank you very much.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Countdown shortcode not working’ is closed to new replies.