Hi @webkocken,
it seems that something on your website is preventing Rate my Post from adding an inline script that it requires. Could you try temporarily disabling other plugins on by one until it starts working, so we figure out which plugin is causing the issue? Then I can check/fix the incompatibility.
Regards,
Blaz
Hi @blazk !
The problem is with my Litespeed cache plugin.
If I deactivate it, then the stars work fine.
Hi, I ran a quick test wite LiteSpeed cache plugin, but I couldn’t replicate your problems. Nevertheless, the problem is most likely in your JS settings of LiteSpeed cache plugin. Please try disabling JS Minify, JS Combine, JS HTTP/2 Push, Load JS Deferred, Load Inline JS (put to default) and Exclude JQuery in the Litespeed cache plugin under “Page Optimization”->”JS settings”. Then purge all cache under “Toolbox”.
Open an incognito window and try if it works. If it does enable features one by one again to figure out exactly which feature interferes with the plugin.
Let me know how it goes.
Regards,
Blaz
Hi!
Tried to set Load inline JS to default, and after that it worked!
Great work, thanks!
I have another question.
I want to use “Prevent accidental votes”. Is it possible to add a line of text above the button with a question like “Do you want to cast a vote of X?” where X is the number that the user has selcted?
I’m glad to hear that. If you are using LiteSpeed cache plugin, you should also change the TTL to 86400 to avoid errors with nonces. More about this here. Optimal settings for LiteSpeed cache here.
As for the second, it’s unfortunately not possible. Maybe in the future – i’m logging ideas from here 🙂
Regards,
Blaz
Ok, cool!
On more thing.
The stars at the top of the page, is it possible to move them to another place with shortcode or normal code?
Yes of course – you can simply add shortcode [ratemypost-result] or if you are doing this directly in the template:
<?php echo do_shortcode('[ratemypost-result]'); ?>
Blaz