如何删除/自定义 storefront 主题页脚的 Storefront designed by WooCommerce 字样和链接?

正在查看 3 个帖子:1-3 (共 3 个帖子)
  • 作者
    帖子
  • 诗语
    管理员
    • 文章数量: 5,925
    @feibisi
    楼主

    storefront 主题是 WooThemes 出品的 WooCommerce 商店主题,我们做了中文版的,所以需要调整下页脚的链接,因为这些主题都是 GPL 授权的,改主题代码和页脚都是允许的,在 wordpress.org 找到了解决方法如下:

    2016-06-26 10.11.46

    将以下代码加入到你的子主题中:

    // Remove WooThemes Credit from Footer
    add_action( 'init', 'custom_remove_footer_credit', 10 );
    function custom_remove_footer_credit () {
        remove_action( 'storefront_footer', 'storefront_credit', 20 );
        add_action( 'storefront_footer', 'custom_storefront_credit', 20 );
    } 
    function custom_storefront_credit() {
    	?>
    	<div class="site-info">
    		&copy; <?php echo get_bloginfo( 'name' ) . ' ' . date( 'Y' ); ?>
    	</div><!-- .site-info -->
    	<?php
    }

    修改好的效果:

    2016-06-26 11.48.15

    其他文字什么的也可以自己添加。

    诗语
    管理员
    • 文章数量: 5,925
    @feibisi
    楼主

    原帖地址:https://wordpress.org/support/topic/how-to-remove-remove-designed-by-woothemes-from-footer

    诗语
    管理员
    • 文章数量: 5,925
    @feibisi
    楼主
    此回复已被标记为私有,🔒 仅楼主及管理员可见。
正在查看 3 个帖子:1-3 (共 3 个帖子)
  • 话题 「如何删除/自定义 storefront 主题页脚的 Storefront designed by WooCommerce 字样和链接?」 已关闭,不接受新回复。

话题信息

  • 当前位于:Storefront
  • 2 条回复
  • 1 个参与人
  • 最后回复:<a href="https://bbs.weixiaoduo.com/users/feibisi/" title=" 查看诗语的个人资料" class="bbp-author-link"><span class="bbp-author-name"> 诗语</span></a>
  • 上次活动:<a href="https://bbs.weixiaoduo.com/topic/19125/#post-19127" title=" 回复至:如何删除/自定义 storefront 主题页脚的 Storefront designed by WooCommerce 字样和链接?">8 年、 8 月前</a>