如何刪除/自定義 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>