Tagged: x
-
AuthorPosts
-
May 19, 2016 at 7:58 pm #1000582
gabriellavanrijParticipantHi, 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!
May 19, 2016 at 10:13 pm #1000798
Prasant RaiModeratorHello 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.
May 19, 2016 at 10:44 pm #1000841
gabriellavanrijParticipantI 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!
May 19, 2016 at 11:09 pm #1000874
Prasant RaiModeratorHello 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.
May 20, 2016 at 3:59 pm #1002099
gabriellavanrijParticipantOK. 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?
May 20, 2016 at 10:22 pm #1002537
Prasant RaiModeratorYou can the code in function.php file. As such there is no specific place.
May 20, 2016 at 11:21 pm #1002591
gabriellavanrijParticipantI added it to the function.php, but still no luck. The reviews aren’t showing. Any other suggestions?
May 21, 2016 at 2:51 am #1002707
ChristopherModeratorHi there,
Before we continue, please update X to v 4.4.2
Thanks.
May 21, 2016 at 8:20 pm #1003409
gabriellavanrijParticipantI have now updated to v 4.4.2. Please advise me what to do next. Thanks!
May 22, 2016 at 12:56 am #1003586
RadModeratorHi 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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1000582 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
