The Storefront theme developed by WooCommerce/Automattic comes with default footer credits content: “Built with Storefront & WooCommerce | Privacy Policy | Copyright Website 2020“.
Thankfully, this default content comes with “hooks”, so it’s possible to override such behavior without touching core files or duplicating templates. So, here are a few snippets you can use to edit or remove the Storefront theme copyright content. Enjoy!
PHP Snippet 1: Completely Remove the Storefront Theme Copyright (Credits)
/**
* @snippet Remove Storefront Theme Copyright
* @how-to businessbloomer.com/woocommerce-customization
* @author Rodolfo Melogli, Business Bloomer, BusinessBloomer.com
* @testedwith WooCommerce 4.6
* @community https://businessbloomer.com/club/
*/
add_action( 'wp', 'bbloomer_remove_storefront_credits' );
function bbloomer_remove_storefront_credits() {
remove_action( 'storefront_footer', 'storefront_credit', 20 );
}
PHP Snippet 2: Remove the Storefront Theme Copyright Link “Built with Storefront” Only
/**
* @snippet Remove Storefront Theme Copyright Link
* @how-to businessbloomer.com/woocommerce-customization
* @author Rodolfo Melogli, Business Bloomer, BusinessBloomer.com
* @testedwith WooCommerce 4.6
* @community https://businessbloomer.com/club/
*/
add_filter( 'storefront_credit_link', '__return_false' );
PHP Snippet 3: Remove the Storefront Theme Copyright Privacy Policy Link Only
/**
* @snippet Remove Storefront Theme Copyright Privacy
* @how-to businessbloomer.com/woocommerce-customization
* @author Rodolfo Melogli, Business Bloomer, BusinessBloomer.com
* @testedwith WooCommerce 4.6
* @community https://businessbloomer.com/club/
*/
add_filter( 'storefront_privacy_policy_link', '__return_false' );
PHP Snippet 4: Remove the Storefront Theme Copyright Link “Built with Storefront” + Privacy Policy
/**
* @snippet Remove Storefront Theme Copyright Link + Privacy
* @how-to businessbloomer.com/woocommerce-customization
* @author Rodolfo Melogli, Business Bloomer, BusinessBloomer.com
* @testedwith WooCommerce 4.6
* @community https://businessbloomer.com/club/
*/
add_filter( 'storefront_credit_links_output', '__return_empty_string' );
PHP Snippet 5: Remove the Storefront Theme Footer Text “Copyright Website 2020” Only
/**
* @snippet Remove Storefront Theme Copyright Text
* @how-to businessbloomer.com/woocommerce-customization
* @author Rodolfo Melogli, Business Bloomer, BusinessBloomer.com
* @testedwith WooCommerce 4.6
* @community https://businessbloomer.com/club/
*/
add_filter( 'storefront_copyright_text', '__return_empty_string' );
PHP Snippet 6: Edit the Storefront Theme Footer Text “Copyright Website 2020”
/**
* @snippet Edit Storefront Theme Copyright Text
* @how-to businessbloomer.com/woocommerce-customization
* @author Rodolfo Melogli, Business Bloomer, BusinessBloomer.com
* @testedwith WooCommerce 4.6
* @community https://businessbloomer.com/club/
*/
add_filter( 'storefront_copyright_text', 'bbloomer_edit_storefront_copyright_text' );
function bbloomer_edit_storefront_copyright_text() {
$text = 'Copyright 2011-' . date( 'Y' ) . ' by Rodolfo Melogli';
return $text;
}
Thanks a lot for this text, I was looking for it, it works ok
Welcome!
Very good text, I was looking for a long time why it cannot be changed in this template
Cool
AAaand the turbo version: add widget area to footer credits:
Cool stuff