Prevent Disqus from loading

4.41K viewsCore
0

On the answer page, both Disqus and the Anspress comment form loads.

Is there any way to prevent Disqus from loading on these pages?

Do the Anspress plugin uses ‘question’ and ‘answer’ custom post types?

 

Url: http://bit.ly/1eJi2mf

0

Yes, question and answer are CPT. Just disable Disqus for question and answer CPT.

Try this:

add_filter( 'comments_template' , 'my_block_disqus', 1 );

function my_block_disqus($file) {
if ( 'question' == get_post_type() || 'answer' == get_post_type() )
   remove_filter('comments_template', 'dsq_comments_template');
   return $file;
}

Tried this allready, but does not work

Seems like it does work.
I was looking at a cached version.

Can u check please of it is a browser problem of mine, but the plugin images are not loaded for me.

Its due to cloudflare minify. turn that off. or try in development mode.

I tried in development mode, but still no good.
Firefox and Chrome do not work, Internet Explorer no problem.