首先,修改语言包(wp-content\languages)就可以,但是语言包必须是编译的,使用poedit进行编译,将po编译为mo文件即可。
Updated on November 6, 2020 CST

- 方法一:修改 comments.php 文件
- 方法二:修改 functions.php 文件
方法一:修改 comments.php 文件
1)找到 functions 文件,如主题名称为 ‘aimeesign’,一般情况下,路径如下
\wp-content\themes\aimeesign\comments.php
2)打开 comments.php,找到下面这句调用评论表单的代码
<?php comment_form(); ?>
3)复制如下代码,替换步骤 2) 的,保存完成。引号里 ‘Leave your comment’ 为修改后的标题
<?php comment_form(array(
'title_reply' => __( 'Leave your comment' ),
));?>
方法二:修改 functions.php 文件
1)找到 functions 文件,如主题名称为 ‘aimeesign’,一般情况下,路径如下
\wp-content\themes\aimeesign\functions.php
2)复制粘贴如下代码到 functions.php,保存完成。引号里 ‘Leave your comment’ 为修改后的标题
// Change comment title
function comment_reform ($arg) {
$arg['title_reply'] = __('Leave your comment');
return $arg;
}
add_filter('comment_form_defaults','comment_reform');

Static Image