實用的 WordPress ICP 備案許可管理器

如何為 Storefront 主題修改頁尾連結,去掉 Built with Storefront & WooCommerce.

如何刪除/自定義 Storefront 主題頁尾的 Built with Storefront & WooCommerce. 字樣和連結? 過去一段時間為 Storefront designed by WooCommerce. 或者 designed by WooThemes .

Storefront 主題是 WooCommerce 的預設商店主題,薇曉朵做了中文版的,所以需要調整下頁尾的連結,因為這些主題都是 GPL 授權的,改主題程式碼和頁尾都是允許的,在 wordpress.org 找到了解決方法如下:

將以下程式碼加入到您的子主題 functions.php 檔案中:

// 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

其他文字什麼的也可以自己新增。


薇曉朵 Storefront 中文版 WooCommerce 主題針對國內使用者進行了多項最佳化,使用更方便省心,購買地址:

Storefront | 店面 商店 網店 官方 WooCommerce 主題

文章沒看懂?程式碼不會用?需要幫助您可以

小新 的頭像