刚开始玩WP,看到博客最底下的“自豪地采用WordPress”字样,总感觉不舒服,就想把去掉,以下是去掉教程:
1. 进到管理后台,打开外观-编辑

2. 找到“footer.php”,进行代码修改
3. 删除以下代码:
<a href=“<?php echo esc_url(https://blog.csdn.net/__(%20%E2%80%98<a%20href="http://wordpress.org/"%20target="_blank"%20rel="nofollow%20noopener">http://<span%20id="wordhighlight_id19"%20class="wordhighlight_ext%20wordhighlight_word0">wordpress</span>.org/</a>%E2%80%99,%20%E2%80%98twentyeleven%E2%80%99) ); ?>” title=“<?php esc_attr_e( ‘Semantic Personal Publishing Platform’, ‘twentyeleven’ ); ?>” rel=“generator”><?php printf( __( ‘Proudly powered by %s’, ‘twentyeleven’ ), ‘<span id="wordhighlight_id20" class="wordhighlight_ext wordhighlight_word0">WordPress</span>’ ); ?></a>
|
1 | <a href=“<?php echo esc_url( __( ‘<a href="http://wordpress.org/" target="_blank" rel="nofollow noopener">http://<span id="wordhighlight_id19" class="wordhighlight_ext wordhighlight_word0">wordpress</span>.org/</a>’, ‘twentyeleven’ ) ); ?>” title=“<?php esc_attr_e( ‘Semantic Personal Publishing Platform’, ‘twentyeleven’ ); ?>” rel=“generator”><?php printf( __( ‘Proudly powered by %s’, ‘twentyeleven’ ), ‘<span id="wordhighlight_id20" class="wordhighlight_ext wordhighlight_word0">WordPress</span>’ ); ?></a> |
如果想要替换成我博客的样式,请把删除的代码替换为一下代码:
<a href=“<?php echo get_option(‘home’); ?>” title=“<?php bloginfo(‘name’); ?>” rel=“generator”><?php bloginfo(‘name’); ?></a>
|
1 | <a href=“<?php echo get_option(‘home’); ?>” title=“<?php bloginfo(‘name’); ?>” rel=“generator”><?php bloginfo(‘name’); ?></a> |
4. 点击“更新文件”,然后刷新你的WP首页,就改好了。
欢迎各位关注左下角的微信公众号,第一时间掌握本站最新信息和IT前沿信息,同时公众号中会不断更新私有IT资源哟!!
本文介绍如何在WordPress博客中移除默认显示的“自豪地采用WordPress”字样,并提供了具体的步骤和代码修改方法。
8703

被折叠的 条评论
为什么被折叠?



