Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1000582
    gabriellavanrij
    Participant

    Hi, there!

    On one of my shop pages, there is a review button, but it isn’t showing any reviews or ways to add reviews. After some research, I’ve found that it’s because the Disqus plugin is overriding the WooCommerce commenting system. So I need to add the following line of code to the Disqus php file:

    //Prevent Disqus from blocking the WooCommerce Review form on product pages.
    if ( ‘product’ == get_post_type() ) { return false; }

    However, I don’t know where in the Disqus php file to add it. Would you have any suggestions? Shall I provide you with my ftp credentials?

    http://gabriella.global/product/book-watch-delivery/

    I am using WordPress 4.4.1 running X – Child Theme theme. of X Version: 3.2.4

    Thank you so much!

    #1000798
    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in!

    You can take advantage of X Child theme to add above code. For more information on setting up child theme please walk-through our knowledgebase:

    https://community.theme.co/kb/how-to-setup-child-themes/

    Thanks.

    #1000841
    gabriellavanrij
    Participant

    I do have X child theme installed. I don’t understand how that will help me fix my problem. Could you provide me with a little more instruction? Thank you so much!

    #1000874
    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in!

    As you have already installed X Child theme, please add you code in child theme function.php file.

    Let us know how it goes.

    Thanks.

    #1002099
    gabriellavanrij
    Participant

    OK. Thank you! One more question: Do I add it to the functions.php file? or the comments.php file? And is there a specific place in the php file I should place that line of code?

    #1002537
    Prasant Rai
    Moderator

    You can the code in function.php file. As such there is no specific place.

    #1002591
    gabriellavanrij
    Participant

    I added it to the function.php, but still no luck. The reviews aren’t showing. Any other suggestions?

    #1002707
    Christopher
    Moderator

    Hi there,

    Before we continue, please update X to v 4.4.2

    Thanks.

    #1003409
    gabriellavanrij
    Participant

    I have now updated to v 4.4.2. Please advise me what to do next. Thanks!

    #1003586
    Rad
    Moderator

    Hi there,

    Sorry, I’m confused with the discussion. As I checked, your Disqus comment is from Disqus Comment System plugin. That something you can’t override or change through child theme coding. It’s best to contact the plugin author and get some advice on how it can be disabled for the specific post type.

    Thanks!

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