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!

On top you can see the default Storefront theme copyright content. It features a first line with the website name, and a second line that links to woocommerce.com. In the red rectangle you see the HTML that is generating such content.

PHP Snippet 1: Completely Remove the Storefront Theme Copyright (Credits)

/**
 * @snippet       Remove Storefront Theme Copyright
 * @how-to        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli, BusinessBloomer.com
 * @testedwith    WooCommerce 4.6
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */

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        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli, BusinessBloomer.com
 * @testedwith    WooCommerce 4.6
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */

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        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli, BusinessBloomer.com
 * @testedwith    WooCommerce 4.6
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */

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        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli, BusinessBloomer.com
 * @testedwith    WooCommerce 4.6
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */

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        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli, BusinessBloomer.com
 * @testedwith    WooCommerce 4.6
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */

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        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli, BusinessBloomer.com
 * @testedwith    WooCommerce 4.6
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */

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;
}
Share:

Leave a Reply