修改WordPress Zerif主题页脚不显示 Zerif Lite developed by ThemeIsle

本文介绍如何在WordPress网站上移除Zerif Lite主题的页脚版权信息,包括删除特定代码片段的方法,以及如何进一步调整页脚样式,使其更加符合网站设计需求。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

备份

删除页脚的

  • 页脚显示 Zerif Lite developed by ThemeIsle

如果只是不想显示 Zerif Lite developed by ThemeIsle 方法如下:
找到wordpress/wp-content/themes/zerif-lite/footer.php
删掉以下代码,刷新网页OK搞定。

                    /* Translators: %s: ThemeIsle link */
                    echo '<div class="zerif-copyright-box"><a class="zerif-copyright" rel="nofollow">Zerif Lite </a>' . sprintf( __( 'developed by %s', 'zerif-lite' ), '<a class="zerif-copyright" href="' . esc_url( 'https://themeisle.com' ) . '" ' . $attribut_new_tab . ' rel="nofollow">' . __( 'ThemeIsle', 'zerif-lite' ) . '</a>' ) . '</div>';

                    echo '</div>';
  • 页脚太高,占用面积过大

删掉上面代码后页脚变成空白的,但是这个页脚太高,而且颜色难看,非常不爽,怎么把页脚去掉呢

  1. 首先删除wordpress/wp-content/themes/zerif-lite/footer.php

  2. 刷新网页,可以看到页脚变了,变成

    自豪地采用WordPress构建
    

    或则是英文

    is proudly powered by WordPress
    

    这样更难看了

  3. 修改wordpress/wp-includes/theme-compat/footer.php

<hr />
<div id="footer" role="contentinfo">
<!-- If you'd like to support WordPress, having the "powered by" link somewhere on your blog is the best way; it's our only promotion or advertising. -->
        <p>
                <?php
                printf(
                        /* translators: 1: blog name, 2: WordPress */
                        __( '%1$s is proudly powered by %2$s' ),
                        get_bloginfo('name'),
                        '<a href="https://wordpress.org/">WordPress</a>'
                );
                ?>
        </p>
</div>
</div>

把这一段代码删掉,刷新。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值