wordpress主题模板页脚的版权内容显示处理

在wordpress安装主题模板后,页脚常会出现版本声明,如下所示,那么如何去除或隐藏这些声明呢?

Copyright © 2026 打火机男孩. All Right Reserved.
Theme : Personal CV Resume By aThemeArt

1、隐藏红色部分

方法步骤:

1)进入当前站点主题目录,使用grep命令在当前启用的主题模板中查找“aThemeArt”关键字

[root@VM-0-13-opencloudos themes]# pwd
/www/wwwroot/zippoxu.com/wp-content/themes
[root@VM-0-13-opencloudos themes]# ll
total 12
-rwxr-xr-x 1 www www   28 Jun  5  2014 index.php
drwxr-xr-x 8 www www 4096 Jan 17 05:18 personal-cv-resume
drwxr-xr-x 5 www www  191 Jan 17 05:18 personal-resume-portfolio
drwxr-xr-x 7 www www 4096 Jan  7 05:00 twentytwentyfive
[root@VM-0-13-opencloudos themes]# grep -r "aThemeArt" personal-cv-resume personal-resume-portfolio
personal-cv-resume/class/class-footer.php:                      $html  .= '<span class="dev_info">'.sprintf( esc_html__( 'Theme : %1$s By %2$s', 'personal-cv-resume' ), '<a href="'. esc_url( 'https://wordpress.org/themes/personal-cv-resume/' ) .'" target="_blank" rel="nofollow">'.esc_html_x( 'Personal CV Resume', 'theme name', 'personal-cv-resume' ).'</a>',  '<a href="'.esc_url( __( 'https://athemeart.com/', 'personal-cv-resume' ) ).'" target="_blank" rel="nofollow">'.esc_html_x( 'aThemeArt', 'credit to developer', 'personal-cv-resume' ).'</a>' ).'</span>';
personal-cv-resume/inc/pro/admin-page.php: * @author  aThemeArt
personal-cv-resume/languages/personal-cv-resume.pot:msgid "Theme : %1$s By aThemeArt"
personal-cv-resume/languages/personal-cv-resume.pot:msgid "aThemeArt"
personal-cv-resume/readme.txt:Contributors: aThemeArt
personal-cv-resume/readme.txt:Personal CV Resume WordPress Theme, Copyright (C) 2022 aThemeArt.com
personal-cv-resume/style.css:Author: aThemeArt
personal-resume-portfolio/languages/personal-resume-portfolio.pot:msgid "aThemeArt"
personal-resume-portfolio/readme.txt:Personal Resume Portfolio WordPress Theme, Copyright 2025 aThemeArt
personal-resume-portfolio/readme.txt:Personal Resume Portfolio is child theme of Personal CV Resume WordPress Theme, Copyright 2025 aThemeArt
personal-resume-portfolio/readme.txt:* logo and loading  self created by aThemeArt.com
personal-resume-portfolio/style.css:Author: aThemeArt
[root@VM-0-13-opencloudos themes]# 

2)在如上日志中找到css类名为“dev_info”

3)尝试用CSS隐藏它,wordpress中点击“外观”->“自定义”->“额外CSS”,添加如下代码:

.dev_info { display: none !important; }
/* 如果主题用了不同类名,检查后替换 */

刷新主页,红色声明部分成功被隐藏。

近期评论

您尚未收到任何评论。
2026 年 1 月
 1234
567891011
12131415161718
19202122232425
262728293031