朱纯树博客
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 文件,看看有没有相关的版权说明代码,有的话就可以直接修改或删除,没有的话就看看是不是将版权说明代码藏到其他文件中,此时只能逐个文件查找或者问主题作者了。

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

评论 24

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

    I must thank you for the efforts you’ve put in writing this
    blog. I’m hoping to view the same high-grade blog posts by you
    in the future as well. In fact, your creative
    writing abilities has motivated me to get my own,
    personal blog now 😉

  2. #29

    Good post however , I was wanting to know if you could write a litte more on this
    subject? I’d be very thankful if you could elaborate a little bit
    more. Cheers!

  3. #28

    This is a very good tip particularly to those fresh to the blogosphere.

    Short but very accurate info… Thanks for sharing this one.
    A must read post!

    tinyurl.com1周前 (08-02)回复
  4. #27

    Oh my goodness! Awesome article dude! Thank you, However I am going through
    issues with your RSS. I don’t understand why I am unable to join it.
    Is there anybody getting identical RSS problems? Anybody who knows the answer will
    you kindly respond? Thanks!!

  5. #26

    I am sure this post has touched all the internet
    viewers, its really really fastidious post on building up new web site.

  6. #25

    It’s hard to come by educated people for this subject, but you seem like you know what
    you’re talking about! Thanks

  7. #24

    Hi there! I know this is kinda off topic however , I’d
    figured I’d ask. Would you be interested in trading links or maybe guest writing a blog
    article or vice-versa? My website discusses
    a lot of the same subjects as yours and I think we could greatly benefit
    from each other. If you’re interested feel free
    to send me an email. I look forward to hearing from you!
    Great blog by the way!

    bit.ly4周前 (07-15)回复
  8. #23

    What’s up to all, how is all, I think every
    one is getting more from this website, and your views are nice designed for
    new users.

    tinyurl.com1个月前 (07-07)回复
  9. #22

    Useful information. Fortunate me I discovered your web site by chance, and I’m stunned why this accident did
    not took place earlier! I bookmarked it.

    http://tinyurl.com2个月前 (06-12)回复