Home >CMS Tutorial >WordPress >How to delete WordPress theme template copyright

How to delete WordPress theme template copyright

尚
Original
2019-07-13 17:43:303094browse

How to delete WordPress theme template copyright

Wordpress template copyright deletion method:

1. Open the theme folder: wp-content/themes/theme name/footer.php;

2. Search and find the following code:

<a href="<?php echo esc_url( __( &#39;http://wordpress.org/&#39;, &#39;主题名称&#39; ) ); ?>
" title="<?php esc_attr_e( &#39;Semantic Personal Publishing Platform&#39;, &#39;twentyeleven&#39; ); ?>
" rel="generator"><?php printf( __( &#39;Proudly powered by %s&#39;, &#39;主题名称&#39; ), &#39;WordPress&#39; ); ?>
</a>

3. Just delete this code. Nothing will be displayed after deletion. This is not very beautiful. You can add your own copyright information and replace it with the following code. :

<a href="<?php echo get_option(&#39;home&#39;); ?>" title="<?php bloginfo(&#39;name&#39;); ?>
" rel="generator"><?php bloginfo(&#39;name&#39;); ?></a>  这样就换成了自己的版权信息了。

For more wordpress related technical articles, please visit the wordpress tutorial column to learn!

The above is the detailed content of How to delete WordPress theme template copyright. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn