Hi there,
I’ve got two little feature requests to improve even more this plugin.
1) I would recommend renaming the JS files, because they are being blocked by ad blockers like uBlock Origin, and therefore the counters don’t work unless the page is whitelisted.
2) The plugin would be even lighter if it only loaded the JS/CSS on pages where it’s needed. Meaning that if a counter is not added on a page, JS/CSS shouldn’t be loaded at all.
Thank you!
]]>The default font-weight of numbers is 700. I think it’s a bit bold in some situations if your websites are using lower font-weight fonts.
It would be great if you can add this setting to the Style tab of the block.
]]>Hey Achal,
I really appreciate this plugin, but it would be great if you could rename the counter.js file in the plugin as right now this causes uBlock origin (and maybe other ad blockers) to block the file and breaks the functionality.
If anyone else has this problem, here’s how you can fix it:
1. Rename the counter.js file by going to counter-block > assets > js
I renamed the file to numbersgohigher.js
2. Edit the counter.php file in the main folder and change plugins_url( 'assets/js/counter.js', __FILE__ ),
to plugins_url( 'assets/js/numbersgohigher.js', __FILE__ ),
(or whatever you renamed the JavaScript file to).
Tried on Firefox and Chrome. Really unfortunate because this plugin counts up and down. Very useful for offers!
]]>Thank you for the nice and simple plugin.
Could you please rename the counter.js script to anything else, so it doesn’t get blocked by uBlockOrigin.
Regards spencer
]]>