wordpress
How to disable comments in WordPress

Comments are a great way to communicate with your audience, but some site owners don’t like to have comments section on their website. In this article, we’ll guide you step by step process on how to disable comments from your website.
- Diable comments through the plugin
- Disable comments via WordPress setting
Diable Commnets via Plugin
If you want to disable comments on all over the website or on selective post types, use Disable Comments plugin as it will allow you to disable comments globally. After installing the plugin go to Setting > Disable comments and choose the option according to your requirement. The mentioned plugin is not suitable if you wish to disable comments on a specific post.

Disable comments via WordPress setting
Luckily WordPress has provided the option to disable comments globally on your website and also to remove comments individually on specific posts.
To disable comments globally go to Dashboard > Discussion and uncheck the “Allow people to submit comments on new posts” option.

To remove comments from a specific post or page, go to the Dashboard > Post/Page and click on the edit post link. Scroll down the bottom of the page and make sure to uncheck allow comments option.


wordpress
How to remove hentry schema from WordPress?
By default WordPress adds hentry schema to the website, to remove schema add the following code to functions.php
By default WordPress adds hentry schema to the website, to remove schema add the following code to functions.php
function themes_remove_hentry( $classes ) {
if ( is_page() ) {
$classes = array_diff( $classes, array( 'hentry' ) );
}
else
{
$classes = array_diff( $classes, array( 'hentry' ) );
}
return $classes;
}
add_filter( 'post_class','themes_remove_hentry' );
-
Design3 years ago
How to write Urdu, Arabic and Persian in Adobe Illustrator
-
Health2 years ago
Melissa Peterman Weight Loss – What is Her Secret?
-
Tech3 years ago
7 Types of Propaganda Techniques Advertisers Use
-
After Effects Tutorial4 years ago
How to Install Duik rigging tool in after effects
-
After Effects Tutorial4 years ago
Paper Plane Animation in After Effects
-
After Effects Tutorial4 years ago
2D Car Animation Tutorial in After Effects
-
Development1 year ago
How to add TinyMCE in Laravel
-
Parenting4 months ago
The Benefits Of Outdoor Play For Kids