for comment in any post read more just append this data in components\ReadMore\plugins\default\js\readmore.php
Ossn.RegisterStartupFunction(function(){
$(document).ajaxComplete(function(event, xhr, settings) {
var $url = window.location.href;
$pagehandler = $url.replace(Ossn.site_url, '');
$tocheck = ['home', 'user'];
if($tocheck.includes($pagehandler)){
$('.comment-text:not([aria-expanded])').readmore({startOpen: false, speed: 100});
}
});
$(document).ready(function(){
$('.comment-text').readmore({startOpen: false, speed: 100});
});
});
Why not work for comments
scrap that its still doing it, i have messaged you on softlab24
ok i have it working now, not sure what the problem was over all, but i did have code in the top bar for sharing buttons. i took that off . now it works fine. i do have a further issue which i think i will mention on softlab24 to you .thanks
@James i tried to test on social theme using firefox and i don't see any reload/refresh. You may send me a video capture to our email.
my browser is stuck on refreshing or attempting to reload the page while there are post with the read more link showing. im using fire fox. and using social theme , as a result i cant use anything, any links or buttons while its attempting to reload for some reason
Can you explain more please?
this appears to be enforcing a infinite refresh ., running on social theme