1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

HOWTO Enable XenWord and Disqus within a product on WooCommerce plugin.

Modifying disqus.php

  1. LPH
    Warning: This requires a modification of the disqus.php file located path/to/wp-content/plugins/disqus-comment-system. The changes will be overwritten when the plugin is updated.

    Install Disqus and XenWord

    Go to line 149 of the disqus.php file and change all of the lines to the following:

    Code (Text):
    1.  
    2.     $replace = get_option('disqus_replace');
    3.  
    4.     if ( is_feed() )                       { return false; }
    5.     if ( 'draft' == $post->post_status )   { return false; }
    6.     if ( !get_option('disqus_forum_url') ) { return false; }
    7.     if ( 'product' == get_post_type() )    { return false; }
    8.     else if ( 'all' == $replace )          { return false; }
    9.