朱纯树博客
VPS测评推荐网站
cloudacead cloudacead

如何修改或删除WordPress默认主题的“自豪地采用WordPress”?

wordpress 默认主题页脚处一般都会显示该站是由 WordPress 建立并且带有链接地址,对于免费使用 WordPress 建站的都应该保留这个版权说明及链接,不过有些站长不喜欢显示这个“自豪地采用 WordPress”词语想要修改或删除,那么应该如何操作呢?

亲自测试了一下,WordPress 默认主题 2020 显示的版权说明是“由 WordPress 强力驱动”,主题 2019 显示的是“自豪地由 WordPress 驱动”,主题 2017 显示的是“自豪地采用 WordPress”,但是不管显示什么样的版权说明,大多数都是直接修改主题目录下的页脚文件,即是 footer.php 文件。下面我们以 WordPress 默认主题 2020(twentytwenty)为例进行说明:

打开该主题的页脚文件,路径为:/wp-content/themes/twentytwenty/footer.php,大概在 31~35 页就是显示 WordPress 版权说明的代码,具体如下图所示:

如何修改或删除WordPress默认主题的“自豪地采用WordPress”?插图

如果想要删除 WordPress 版权说明及链接的话,只需要删除 footer.php 文件中的 31~35 页代码并保存即可。

如果想要修改 WordPress 版权说明,可以将第 33 行代码中的“Powered by WordPress”改为其他文字(可中英文)即可。当然,也可以直接修改 32~34 行的 A 标签整个代码。

默认情况下,大多数 WordPress 主题的版权说明都是放在页脚 footer.php 文件中,所以我们想要修改或删除版权说明的话建议先看看当前主题的 footer.php 文件,看看有没有相关的版权说明代码,有的话就可以直接修改或删除,没有的话就看看是不是将版权说明代码藏到其他文件中,此时只能逐个文件查找或者问主题作者了。

赞(3) 打赏
未经允许不得转载:VPS测评推荐网站 - 朱纯树博客 » 如何修改或删除WordPress默认主题的“自豪地采用WordPress”?

评论 66

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #75

    This really answered my problem, thank you!

  2. #74

    Helpful information. Fortunate me I found your web site by chance, and I’m stunned why this coincidence didn’t came about in advance! I bookmarked it.

  3. #73

    Simply wish to say your article is as amazing. The clarity in your post is just spectacular and i can assume you’re an expert on this subject. Fine with your permission let me to grab your RSS feed to keep up to date with forthcoming post. Thanks a million and please keep up the enjoyable work.

  4. #72

    I cherished up to you will receive carried out proper here. The caricature is tasteful, your authored subject matter stylish. however, you command get bought an edginess over that you wish be delivering the following. unwell no doubt come more formerly once more since precisely the same nearly very frequently inside of case you defend this hike.