移除Strorefront站点footer上的Storefront Design By WooThemes字样

时间:2022-03-25 06:09:49

进入wp-content\themes\storefront\inc\structure\footer.php, 注释掉代码:

if ( ! function_exists( 'storefront_credit' ) ) {
/**
* Display the theme credit
* @since 1.0.0
* @return void
*/
function storefront_credit() {
?>
<div class="site-info">
<?php echo esc_html( apply_filters( 'storefront_copyright_text', $content = '&copy; ' . get_bloginfo( 'name' ) . ' ' . date( 'Y' ) ) ); ?>
<?php if ( apply_filters( 'storefront_credit_link', true ) ) { ?>
<!-- <br /> <?php printf( __( '%1$s designed by %2$s.', 'storefront' ), 'Storefront', '<a href="http://www.woothemes.com" alt="Premium WordPress Themes & Plugins by WooThemes" title="Premium WordPress Themes & Plugins by WooThemes" rel="designer">WooThemes</a>' ); ?>
<?php } ?>
-->
</div><!-- .site-info -->
<?php
}
}