<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>

		<title>How to disable comment section &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/how-to-disable-comment-section/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/how-to-disable-comment-section/feed/</link>
		<description></description>
		<lastBuildDate>Sat, 18 Oct 2025 13:53:27 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-disable-comment-section/#post-23624</guid>
					<title><![CDATA[How to disable comment section]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-disable-comment-section/#post-23624</link>
					<pubDate>Sun, 16 Mar 2014 19:31:54 +0000</pubDate>
					<dc:creator>Sascha L</dc:creator>

					<description>
						<![CDATA[
						<p>Hi dear support! </p>
<p>First let me tell you that I love your theme. X is really amazing!</p>
<p>Could you please tell me how it is possible to disable the comment section on pages? </p>
<p><a href="http://golf-duda.de/impressum/" rel="nofollow">http://golf-duda.de/impressum/</a>  (Password: simsum666)</p>
<p><a href="http://golf-duda.de/datenschutzerklaerung/" rel="nofollow">http://golf-duda.de/datenschutzerklaerung/</a></p>
<p>Your help is really apreciated 🙂</p>
<p>Cheers<br />
Sascha</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-disable-comment-section/#post-23787</guid>
					<title><![CDATA[Reply To: How to disable comment section]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-disable-comment-section/#post-23787</link>
					<pubDate>Mon, 17 Mar 2014 15:02:51 +0000</pubDate>
					<dc:creator>Christian</dc:creator>

					<description>
						<![CDATA[
						<p>Hey Sascha,</p>
<p>Thank you for your kind words.</p>
<p>You might find <a href="http://www.youtube.com/watch?v=zD08CkyaZYw" target="_blank" rel="nofollow">this tutorial</a> helpful.</p>
<p>Or, you can copy the code below in your functions.php file if you want to disable it sitewide.</p>
<pre>
// Disable support for comments and trackbacks in post types
function df_disable_comments_post_types_support() {
	$post_types = get_post_types();
	foreach ($post_types as $post_type) {
		if(post_type_supports($post_type, 'comments')) {
			remove_post_type_support($post_type, 'comments');
			remove_post_type_support($post_type, 'trackbacks');
		}
	}
}
add_action('admin_init', 'df_disable_comments_post_types_support');

// Close comments on the front-end
function df_disable_comments_status() {
	return false;
}
add_filter('comments_open', 'df_disable_comments_status', 20, 2);
add_filter('pings_open', 'df_disable_comments_status', 20, 2);

// Hide existing comments
function df_disable_comments_hide_existing_comments($comments) {
	$comments = array();
	return $comments;
}
add_filter('comments_array', 'df_disable_comments_hide_existing_comments', 10, 2);

// Remove comments page in menu
function df_disable_comments_admin_menu() {
	remove_menu_page('edit-comments.php');
}
add_action('admin_menu', 'df_disable_comments_admin_menu');

// Redirect any user trying to access comments page
function df_disable_comments_admin_menu_redirect() {
	global $pagenow;
	if ($pagenow === 'edit-comments.php') {
		wp_redirect(admin_url()); exit;
	}
}
add_action('admin_init', 'df_disable_comments_admin_menu_redirect');

// Remove comments metabox from dashboard
function df_disable_comments_dashboard() {
	remove_meta_box('dashboard_recent_comments', 'dashboard', 'normal');
}
add_action('admin_init', 'df_disable_comments_dashboard');

// Remove comments links from admin bar
function df_disable_comments_admin_bar() {
	if (is_admin_bar_showing()) {
		remove_action('admin_bar_menu', 'wp_admin_bar_comments_menu', 60);
	}
}
add_action('init', 'df_disable_comments_admin_bar');
</pre>
<p>Hope that helps. 🙂</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-disable-comment-section/#post-23892</guid>
					<title><![CDATA[Reply To: How to disable comment section]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-disable-comment-section/#post-23892</link>
					<pubDate>Mon, 17 Mar 2014 20:09:51 +0000</pubDate>
					<dc:creator>Sascha L</dc:creator>

					<description>
						<![CDATA[
						<p>Oh yes thank you very much!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-disable-comment-section/#post-24125</guid>
					<title><![CDATA[Reply To: How to disable comment section]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-disable-comment-section/#post-24125</link>
					<pubDate>Tue, 18 Mar 2014 14:21:53 +0000</pubDate>
					<dc:creator>Christian</dc:creator>

					<description>
						<![CDATA[
						<p>You&#8217;re welcome.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-disable-comment-section/#post-97681</guid>
					<title><![CDATA[Reply To: How to disable comment section]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-disable-comment-section/#post-97681</link>
					<pubDate>Wed, 03 Sep 2014 16:37:18 +0000</pubDate>
					<dc:creator>LucyKeile</dc:creator>

					<description>
						<![CDATA[
						<p>Hey support team! I am trying to accomplish the same. I understand what you have told Sasha, I found the function php file, but I do not know where to paste the code above. I don&#8217;t want to mess it up. I do want to remove all comment function though.</p>
<p>Thank you!</p>
<p>Lucy</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-disable-comment-section/#post-97700</guid>
					<title><![CDATA[Reply To: How to disable comment section]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-disable-comment-section/#post-97700</link>
					<pubDate>Wed, 03 Sep 2014 17:12:14 +0000</pubDate>
					<dc:creator>LucyKeile</dc:creator>

					<description>
						<![CDATA[
						<p>I watched the tutorial and made the correct changes. Thnx</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-disable-comment-section/#post-97750</guid>
					<title><![CDATA[Reply To: How to disable comment section]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-disable-comment-section/#post-97750</link>
					<pubDate>Wed, 03 Sep 2014 18:45:37 +0000</pubDate>
					<dc:creator>Mrinal</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Lucy, </p>
<p>You should placed them into functions.php file of your child theme, learn more about child theme here: <a href="http://theme.co/x/member/kb/how-to-setup-child-themes/" rel="nofollow">http://theme.co/x/member/kb/how-to-setup-child-themes/</a></p>
<p>You can use a plugin instead of any codes if you feel uncomfortable with code changes, the plugin is: <a href="http://wordpress.org/plugins/disable-comments/" rel="nofollow">http://wordpress.org/plugins/disable-comments/</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-disable-comment-section/#post-122591</guid>
					<title><![CDATA[Reply To: How to disable comment section]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-disable-comment-section/#post-122591</link>
					<pubDate>Thu, 09 Oct 2014 21:15:04 +0000</pubDate>
					<dc:creator>Ruben A</dc:creator>

					<description>
						<![CDATA[
						<p>Thank you, For the video upload. This knowledge base has been very helpful.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-disable-comment-section/#post-122794</guid>
					<title><![CDATA[Reply To: How to disable comment section]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-disable-comment-section/#post-122794</link>
					<pubDate>Fri, 10 Oct 2014 06:43:39 +0000</pubDate>
					<dc:creator>Rubin</dc:creator>

					<description>
						<![CDATA[
						<p>You&#8217;re welcome!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-disable-comment-section/#post-143583</guid>
					<title><![CDATA[Reply To: How to disable comment section]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-disable-comment-section/#post-143583</link>
					<pubDate>Wed, 12 Nov 2014 18:56:08 +0000</pubDate>
					<dc:creator>kmarois</dc:creator>

					<description>
						<![CDATA[
						<p>Just wanted to add, when I tried doing this through the wordpress editor I got a 500 Internal Server Error everytime. My workaround was to edit the file locally then upload directly to the child theme folder. </p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

