Remove Disqus JavaScript from homepage

Question

Hey WordPress friends,

I’m using the Disqus comment system plugin, which is working fine. My homepage is just a collection if recent posts and therefore not having the option to leave a comment (as desired).

Unfortunately, I still see that the Disqus plugin is rendering JavaScript output within the homepage and would like to get rid of this.

I’ve Tried the following but without luck. Any help is appreciated! Thanks

function block_disqus_count() {
if ( is_front_page())
    remove_filter('output_count_js', 'dsq_output_count_js');
}

add_action( 'block_disqus_count' , 'block_disqus_count');
0
, , Kevin Bronsdijk 2 years 2020-01-04T08:38:53-05:00 0 Answers 89 views 0

Leave an answer

Browse
Browse