Hi @kapson,
You need to run RateMyPost.re_init(); when new posts load. Please see the details in the docs.
Blaz
Thread Starter
kapson
(@kapson)
Hi Blaz,
I tried to add this code in header and footer
jQuery(function($){
$('body').on( 'alnp-post-loaded', function( e, params ) {
RateMyPost.re_init();
});
});
through these plugins,
1) Simple Custom CSS and JS
2) WP Headers And Footers
3) WPCode – Insert Headers, Footers, and Code Snippets
But hard luck, none of that worked 🙁
Is there any simple option to implement this? As I am novice and scared to touch any code.
If possible kindly help me to work this.
Thank you for your kind ssupport.
Regards
Kapil
-
This reply was modified 2 years, 5 months ago by
kapson.
Thread Starter
kapson
(@kapson)
Hi,
I coudn’t find how to make it work for my site. So, had to remove it for now. Hard luck 🙁
If annyone kindly help me with this I would love to use it. I liked it very much.
@blazk isn’t there any optin we can do this with plugin settings itself?
Thank you for your support.
Regards
Kapil
Hi @kapson,
So, the thing is that once new posts load via infinite scroll functionality the RateMyPost.re_init() function has be called. Rate my post doesn’t know when new posts load as that’s done by another plugin or a theme. Therefore, this is not RMP problem as such. If your infinite scroll plugin triggers a JS event then you should call RateMyPost.re_init() at that time and the widgets will get initialized.
I recommend asking developer of infinite scroll plugin how can you call RateMyPost.re_init() function once news posts load.
Best regards,
Blaz