我已经尝试了所有方法来删除'Powered by Wordpress'和主题的所有者信息。这是footer.php文件。我只需要删除它并更新吗?如果有,我该删除什么?
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after
*
* @package base
*/
?>
</div><!-- #content -->
</div><!-- wide contenitor-->
<footer id="colophon" class="site-footer" role="contentinfo">
<div class="widget-footer container">
<?php get_sidebar( 'footer' ); ?>
</div><!-- .widget-footer -->
<div class="site-info">
<?php get_template_part( 'content/social' ); // Social link ?>
<?php esc_attr_e( '©', 'base' ); ?> <?php _e( date( 'Y' ) ); ?> <a href="<?php echo esc_url(home_url( '/' )) ?>" target="_blank" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
<?php bloginfo( 'name' ); ?>
</a>
<span class="sep"> | </span>
<?php printf( __( 'Theme: %1$s by %2$s ', 'base' ), 'Base WP', '<a href="http://themes.iografica.it" rel="designer">iografica.it</a>' ); ?>
<span class="sep"> | </span>
<?php printf( __( 'Powered by ', 'base' )); ?><a href="http://wordpress.org/" rel="generator">
<?php printf( __( '%s', 'base' ), 'WordPress' ); ?></a>
</div><!-- .site-info -->
</footer><!-- #colophon -->
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>
您试过删除这个吗?
<?php printf( __( 'Powered by ', 'base' )); ?><a href="http://wordpress.org/" rel="generator">
<?php printf( __( '%s', 'base' ), 'WordPress' ); ?></a>
您真的不应该删除主题所有者的名称,因为它可能违反主题的许可。
也就是说,删除第28、30和31行。
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after
*
* @package base
*/
?>
</div><!-- #content -->
</div><!-- wide contenitor-->
<footer id="colophon" class="site-footer" role="contentinfo">
<div class="widget-footer container">
<?php get_sidebar( 'footer' ); ?>
</div><!-- .widget-footer -->
<div class="site-info">
<?php get_template_part( 'content/social' ); // Social link ?>
<?php esc_attr_e( '©', 'base' ); ?> <?php _e( date( 'Y' ) ); ?> <a href="<?php echo esc_url(home_url( '/' )) ?>" target="_blank" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
<?php bloginfo( 'name' ); ?>
</a>
<span class="sep"> | </span>
<span class="sep"> | </span>
</div><!-- .site-info -->
</footer><!-- #colophon -->
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>
为什么要删除字幕?您可以简单地通过一键更新主题到高级版本。使用高级版,您还可以访问更高级的功能和自定义