Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1145554
    billium99
    Participant

    Hi – I’m hoping to customize the X location for blog comments. Basically, I want to remove what is there, and insert Disqus universal code. I need to do this with a template customization because the Disqus plugin conflicts with WooCommerce and neither party appears willing to accept the blame for the issue.

    So, instead of the Disqus plugin, I have the code and instructions on this page:

    https://disqus.com/admin/universalcode/

    But I can’t seem to locate the lines of code or the file that X uses for blog comments that i would replace or augment with these code snippets.

    Any advice here?

    Thanks

    Bill

    #1146055
    Rupok
    Member

    Hi Bill,

    Did you use our Disqus extension or the official plugin?

    Our extension will simply do that what you are trying to do and should not conflict with WooCommerce. Would you confirm the issue?

    Thanks!

    #1149871
    billium99
    Participant

    Hi Rupok,

    Interesting – I didn’t know you guys made one…

    So I just installed that, and instead of the reviews being broken entirely, they appear to now have been replaced by Disqus commenting system?

    This isn’t what the client wants. They want Disqus for blog comments, and WooCommerce native reviews engine for products.

    Any suggestion?

    Thank you

    #1150142
    Rad
    Moderator

    Hi there,

    Then that would need special integration. But unfortunately, we can’t provide such custom development. Woocommerce review section uses same comment system just like the other posts. It’s global comment system and any change made to it will reflect the other. Hence, to achieve that requirement, you’ll need customization that excludes Woocommerce comment section.

    You may consult it a developer.

    Thanks!

    #1150622
    billium99
    Participant

    But it’s not the same. It has the 5 star rating system. Seriously, your own integration just eliminates that part of the reviews system?

    #1150625
    billium99
    Participant

    Even the labels are different so how can it be using the same subsystem?

    #1150640
    Rupok
    Member

    Hi there,

    Thanks for writing back. In that case you should use the official plugin. I am not sure what kind of conflict you are facing but there should not be any. If you want to integrate the universal code then it would be messy since it will be loaded on every page. You can try placing the both code within a single RAW Content element if that works.

    Thanks!

    #1157231
    billium99
    Participant

    Rupok,

    Just to be clear:

    1. The client wants to use the WooCommerce rating and review system
    2. The official Disqus plugin is hiding reviews from the single product page. Nothing is seen in the Reviews tab
    3. The X-Theme version of Disqus replaces the rating and review system, with simple Disqus comments instead

    You are saying you cannot help, and X intended to remove/replace the WooCommerce review/rating system with their Disqus plugin, when installed?

    Bill

    #1157611
    Rad
    Moderator

    Hi Bill,

    Please edit this file, \wp-content\plugins\x-disqus-comments\functions\output.php then find this code

    function x_disqus_comments_template() {
    
      $template = X_DISQUS_COMMENTS_PATH . '/views/site/disqus-comments.php';
    
      return $template;
    
    }

    And change it to this,

    function x_disqus_comments_template( $template ) {
    
      if ( !is_singular('product') ) {
      
      $template = X_DISQUS_COMMENTS_PATH . '/views/site/disqus-comments.php';
    
      }
    
      return $template;
    
    }

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-1145554 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>