Since Salient has comments disabled for pages -- which I can see in functions.php -- I still appear to have comment-reply.js loading on my home page. I've excluded it from the Autoptimize plugin for testing and the original js still loads. Any idea what might be causing this? I've checked my child theme php and functions and there's nothing interfering.
Hi there,
Since Salient has comments disabled for pages -- which I can see in functions.php -- I still appear to have comment-reply.js loading on my home page. I've excluded it from the Autoptimize plugin for testing and the original js still loads. Any idea what might be causing this? I've checked my child theme php and functions and there's nothing interfering.
Cheers,
Nathan
just a correction, it's comment-reply.min.js that is loading regardless of whether Salient has enabled comments.
Hey - thanks for noting this. To remove it for now you can delete this line from the functions.php file:
Thanks!
Will this disable comments for blog posts as well?
Have you found this to be a problem with Salient or is it specific to my website?
Hey!
Commenting the line would make it not load for the whole site.
Thanks
ThemeNectar Support Team
So just to clarify: there is no way to stop comment-reply.min.js from loading specifically on pages without comments?
Not that i am aware of.
All the Best,
-T
ThemeNectar Support Team