Support » Plugin: Football Pool » Countdown shortcode not working

  • Resolved spaniole

    (@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

    (@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?

    spaniole

    (@spaniole)

    Hi, I used the same theme for UEFA Euro 2016 without problems.
    Here by link to the site -> https://vmtips2018.skytjenesten.dk/
    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.
    Thanks.

    Plugin Author AntoineH

    (@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 5 months ago by  AntoineH.
    spaniole

    (@spaniole)

    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.

    spaniole

    (@spaniole)

    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.

    spaniole

    (@spaniole)

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

    Plugin Author AntoineH

    (@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.

    spaniole

    (@spaniole)

    Thank you very much.

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