Php 如何从我的网站中删除主题所有者和wordpress支持?
我已经尽了一切努力来删除“由Wordpress提供动力”和主题所有者的信息。这是footer.php文件。。我是否必须删除它并进行更新?如果是,我应该删除什么Php 如何从我的网站中删除主题所有者和wordpress支持?,php,wordpress,footer,Php,Wordpress,Footer,我已经尽了一切努力来删除“由Wordpress提供动力”和主题所有者的信息。这是footer.php文件。。我是否必须删除它并进行更新?如果是,我应该删除什么 <?php /** * The template for displaying the footer. * * Contains the closing of the #content div and all content after * * @package base */ ?> </div&g
<?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>
|
|
为什么要删除信用卡?您只需单击一下即可将主题更新为高级版本。使用高级版本,您还可以访问更高级的功能和自定义设置。最好创建一个子主题,继承您选择的主题,然后包含您自己的页脚文件。这将确保您的更改也能在主题升级后继续使用。Wordpress网站上有一个页面介绍如何做到这一点——搜索“Wordpress儿童主题”。你为什么要为主题创建者的作品或Wordpress制作wordpess的作品给予奖励?这可能违反主题的许可证?我想这取决于它是根据什么获得许可的?@Ian:阅读整个句子。它的形式是“你不应该做X,因为这样做会导致Y”。换句话说,你必须总是做一些事情,因为有些事情有时可能是真的。在我看来,这有点误导——因此我的评论。@halfer应该!==必须应该只是建议。假设这是主题的一部分,每次升级主题时都需要这样做。我会记得这样做的!