How to Enable Comments on WordPress When Theme Took That Option Away?

sisterflix

Newbie
Joined
Apr 30, 2023
Messages
12
Reaction score
1
I am using the theme Streamlab - Video Streaming WordPress Theme found at https://themeforest.net/item/streamlab-video-streaming-wordpress-theme/30258341.

They have custom post types, such as Videos, TV Shows, etc. But, it's not possible to enable comments on these post types from within the dashboard.

I'm familiar with the theme's file structure and I know PHP. How can I place the default WordPress comments section into these custom post types?

I would appreciate any help I can get. Thank You!
 
Go to customizer and check if you can add wordpress comments widget.
Go to wordpress.org and see if there is a comments plugin and use that plugin.
 
Install and activate a plugin that allows you to enable comments, such as "Disqus Comment System" or "Jetpack".Once the plugin is activated, go to its settings and follow the instructions to set up the comment system. For example, if you use Disqus, you need to create an account and connect it with your WordPress site. After setting up the plugin, go to the "Settings" tab in the WordPress dashboard and select "Discussion". Under "Default article settings", check the box next to "Allow people to post comments on new articles".Scroll down to the "Other comment settings" section and configure the options as desired. Save the changes.
 
Install and activate a plugin that allows you to enable comments, such as "Disqus Comment System" or "Jetpack".Once the plugin is activated, go to its settings and follow the instructions to set up the comment system. For example, if you use Disqus, you need to create an account and connect it with your WordPress site. After setting up the plugin, go to the "Settings" tab in the WordPress dashboard and select "Discussion". Under "Default article settings", check the box next to "Allow people to post comments on new articles".Scroll down to the "Other comment settings" section and configure the options as desired. Save the changes.
Don't use disqus it seeks in ads on your site for free!
I think op wants WordPress comments?
 
Go to customizer and check if you can add wordpress comments widget.
Go to wordpress.org and see if there is a comments plugin and use that plugin.
If I add comments via a plugin, the page doesn't display them. I'm pretty sure I will have to hardcode it into the page through the theme editor. I know PHP, but not fully knowledgeable about the PHP specific to WordPress.
 
This can easily be done using WordPress Toolset:

https://toolset.com/
Exactly how does that work? I'd hate to buy something that doesn't work. I'm fairly certain I will have to hardcode comments into the page. I have tried comments plugins and they don't work. I can't use any comments widgets or comments shortcodes. The theme has made those things not work.
 
Install and activate a plugin that allows you to enable comments, such as "Disqus Comment System" or "Jetpack".Once the plugin is activated, go to its settings and follow the instructions to set up the comment system. For example, if you use Disqus, you need to create an account and connect it with your WordPress site. After setting up the plugin, go to the "Settings" tab in the WordPress dashboard and select "Discussion". Under "Default article settings", check the box next to "Allow people to post comments on new articles".Scroll down to the "Other comment settings" section and configure the options as desired. Save the changes.
I tried Disqus. It doesn't work either.
 
If I add comments via a plugin, the page doesn't display them. I'm pretty sure I will have to hardcode it into the page through the theme editor. I know PHP, but not fully knowledgeable about the PHP specific to WordPress.
I did try adding a widget through the customizer. It doesn't appear on the page.
 
In that case my friend, use a 3rd party comment, facebook, disqus.
Some more:
https://www.google.com/search?q=best+alternative+to+wordpress+comment
I just tried Disqus. That doesn't work either. lol - this theme is great for my purpose, so I'd hate to change (and I already paid for it), but it's neglecting some very important features.
 
I just tried Disqus. That doesn't work either. lol - this theme is great for my purpose, so I'd hate to change (and I already paid for it), but it's neglecting some very important features.
I honestly should've just built this website from scratch myself, but I didn't want to spend the weeks/months on end coding this particular website.
 
I just tried Disqus. That doesn't work either. lol - this theme is great for my purpose, so I'd hate to change (and I already paid for it), but it's neglecting some very important features.
You can do one thing which I always did in situation like this, contact the theme author and ask, you can check how to from where you bought.
 
It's not the easiest thing to do if you don't have some wp programming experience... but if you want to give it a try..

Save the following inside your theme folder as comments.php
Code:
https://github.com/Automattic/_s/blob/master/comments.php

Then look for the single.php (responsible for the post detail) inside your theme... It might look something like this (without the comment code that is):

Code:
https://github.com/Automattic/_s/blob/master/single.php

All you gotta do here is have the following code pasted inside the wp_query loop, e.g. while(have_posts()) {}

Code:
if ( comments_open() || get_comments_number() ) {
      comments_template();
}

For customising the styling, look into that comments.php template.

Edit: I changed the links because the other one seemed to have a custom function in the comments.php. Underscores is also an official WP theme which is meant for "hacking" rather than being used as a child theme.
 
Last edited:
You can do one thing which I always did in situation like this, contact the theme author and ask, you can check how to from where you bought.
Well, I've made attempts. But because I bought the theme over a year ago, they no longer support it. I can extend the support license for $23, which I may end up doing.
 
So, I've decided to teach myself how to make themes (since I am a PHP developer) I figured I would learn WordPress coding (especially since all themes are lacking some sort of feature I'd like to have). In my endeavors, I found the solution.

The original question was basically how to hardcode comments into custom post types. I know where to find these post types in my theme's file structure. And by adding this code, I've added comments to the Movies post type:

Code:
if ( comments_open() || get_comments_number() ) :
    comments_template();
endif;
 
So, I've decided to teach myself how to make themes (since I am a PHP developer) I figured I would learn WordPress coding (especially since all themes are lacking some sort of feature I'd like to have). In my endeavors, I found the solution.

The original question was basically how to hardcode comments into custom post types. I know where to find these post types in my theme's file structure. And by adding this code, I've added comments to the Movies post type:

Code:
if ( comments_open() || get_comments_number() ) :
    comments_template();
endif;
I appreciate everyone's help and suggestions. If, in the future, anyone has the same question, feel free to refer here to my solution.
 
There are tons of plugins that can do it. But it will just make your site heavier. So, it is better to edit theme files to get a option.
 
There are tons of plugins that can do it. But it will just make your site heavier. So, it is better to edit theme files to get a option.
As you may have noticed, none of the plugins worked as I believe my theme deliberately disabled the option for comments. So, I found the solution to edit theme files as I mentioned above. I do try to limit plugin usage and would much rather hardcode solutions. Plugins tend to carry A LOT of bloat and generally, the more plugins you have (especially intensive ones), the slower your site usually runs. Look at WP Super Cache for example. The whole idea is to cache content on your site, but the plugin itself is so extensive, that it contradicts itself and slows down your site.
 
Back
Top