修改資料庫
wp_posts 資料表 comment_Status 設為 closed
wordpress 內預設沒有迴響的頁面都是直接將此設定為 closed ,已經存在的文章可以到資料庫修改即可,或是使用下面方法
修改佈景主題
到 外觀→主題 內找 comment 關鍵字的 php 程式碼,然後註解即可,例如
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
get_header(); ?>
<div id="primary">
<div id="content" role="main">
<?php the_post(); ?>
<?php get_template_part( 'content', 'page' ); ?>
<?php comments_template( '', true ); ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_footer(); ?>
將 <?php comments_template( ", true ); ?> 整行刪除或是加上註解雙斜線,修改成 <?php //comments_template( ", true ); ?>