如何修改或删除后台底部的”感谢使用WordPress进行创作”文字
1. 修改底部文字
要修改后台底部的“感谢使用WordPress进行创作”文字,您需要进行以下操作:
- 登录您的WordPress后台,进入外观->编辑
- 在右边的“主题文件”中找到footer.php文件,点击它进行编辑
- 在代码中找到类似于“<p>感谢使用WordPress进行创作</p>”这行文字,将其中的内容修改为您想要的文字即可
- 保存修改后的代码,刷新网页即可看到效果
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after
*
* @package WordPress
* @subpackage Twenty_Sixteen
* @since Twenty Sixteen 1.0
*/
?>
</div><!-- .site-content-inner -->
</div><!-- .site-content -->
<?php get_template_part( 'template-parts/footer/footer', 'widgets' ); ?>
<footer id="colophon" class="site-footer" role="contentinfo">
<div class="site-footer-inside">
<?php get_template_part( 'template-parts/footer/site', 'info' ); ?>
<?php wp_nav_menu( array( 'theme_location' => 'social', 'menu_class' => 'menu social-menu', 'depth' => 1 ) ); ?>
<p class="powered-by-wordpress">感谢使用WordPress进行创作</p>
</div><!-- .site-footer-inside -->
</footer><!-- .site-footer -->
</div><!-- .site-inner -->
</div><!-- .site -->
<?php wp_footer(); ?>
</body>
</html>
2. 删除底部文字
如果您想删除后台底部的文字,只需要进行以下操作:
- 同样进入footer.php进行编辑
- 找到类似于“<p>感谢使用WordPress进行创作</p>”这行文字的代码
- 将整行代码删除
- 保存修改后的代码,刷新网页即可看到效果
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after
*
* @package WordPress
* @subpackage Twenty_Sixteen
* @since Twenty Sixteen 1.0
*/
?>
</div><!-- .site-content-inner -->
</div><!-- .site-content -->
<?php get_template_part( 'template-parts/footer/footer', 'widgets' ); ?>
<footer id="colophon" class="site-footer" role="contentinfo">
<div class="site-footer-inside">
<?php get_template_part( 'template-parts/footer/site', 'info' ); ?>
<?php wp_nav_menu( array( 'theme_location' => 'social', 'menu_class' => 'menu social-menu', 'depth' => 1 ) ); ?>
</div><!-- .site-footer-inside -->
</footer><!-- .site-footer -->
</div><!-- .site-inner -->
</div><!-- .site -->
<?php wp_footer(); ?>
</body>
</html>
晓白博客网版权所有,原文地址https://www.xbnb.cn/5022
© 版权声明
THE END
请登录后查看评论内容