Hi Nathan,
I think you should look for a 3-d party plugin. I have done a quick google on “wordpress widget on selected pages” and got a bunch of links.
I haven’t tried any of those, sorry.
If it doesn’t work for you or you need a special condition algorithm, please, let me know – you can open a support ticket at http://smartcalc.es/en/create-ticket (choose “Smart Countdown FX for WordPress” as a topic)
Regards, Alex
Hi Alex,
Sorry, I forgot to mention that I’m not using widgets at all.
I’m using the Smart Countdown shortcode, but only on particular pages. Most of the website doesn’t use the countdown, so it’s a bit wasteful of me to load the scripts on those pages too.
I would’ve thought it was one, maybe two functions I would need to dequeue. Is that not the case?
Regards,
Nathan
Ok, now I see. You are right, looks like it’s how WordPress plugins work…
You can see all registered scripts related to Smart Countdown FX if you open the source: /wp-content/plugins/smart-countdown-fx/smartcountdownfx.php and look at counter_scripts() method.
These are:
- velocity-script
- smartcountdown-counter-script
- smartcountdown-plural-strings
“smartcountdown-counter-style” style is also enqueued – obviously not required on pages where the countdown is not displayed.
Regards, Alex
Thanks Alex, that worked!