备份
删除页脚的
如果只是不想显示 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>';
删掉上面代码后页脚变成空白的,但是这个页脚太高,而且颜色难看,非常不爽,怎么把页脚去掉呢
-
首先删除
wordpress/wp-content/themes/zerif-lite/footer.php
-
刷新网页,可以看到页脚变了,变成
自豪地采用WordPress构建
或则是英文
is proudly powered by WordPress
这样更难看了
-
修改
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>
把这一段代码删掉,刷新。