Storefront Theme: Edit or Remove Footer Credits

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

Where to add custom code?

You should place custom PHP in functions.php and custom CSS in style.css of your child theme: where to place WooCommerce customization?

This code still works, unless you report otherwise. To exclude conflicts, temporarily switch to the Storefront theme, disable all plugins except WooCommerce, and test the snippet again: WooCommerce troubleshooting 101

Related content

Rodolfo Melogli

Business Bloomer Founder

Author, WooCommerce expert and WordCamp speaker, Rodolfo has worked as an independent WooCommerce freelancer since 2011. His goal is to help entrepreneurs and developers overcome their WooCommerce nightmares. Rodolfo loves travelling, chasing tennis & soccer balls and, of course, wood fired oven pizza. Follow @rmelogli

6 thoughts on “Storefront Theme: Edit or Remove Footer Credits

  1. Thanks a lot for this text, I was looking for it, it works ok

  2. Very good text, I was looking for a long time why it cannot be changed in this template

  3. AAaand the turbo version: add widget area to footer credits:

    //remove footer credits 
    function storefront_remove_footer_credits() {
    	remove_action( 'storefront_footer', 'storefront_credit', 20 );
    }
    add_action('template_redirect', 'storefront_remove_footer_credits');
    
    //make footer credits widget area
    function dexter_storefront_footer_credits_widget_area_init() {
     
        register_sidebar( array(
            'name'          => 'Footer credits',
            'id'            => 'storefront-footer-credits-widget-area',
            'before_widget' => '<div class="storefront-footer-credits-widget-area-widget">',
            'after_widget'  => '</div>',
            'before_title'  => '<h2 class="storefront-footer-credits-widget-area-title">',
            'after_title'   => '</h2>',
        ) );
     
    }
    add_action( 'widgets_init', 'dexter_storefront_footer_credits_widget_area_init' );
    
    function dexter_storefront_footer_credits_widget_area() {
    	dynamic_sidebar( 'storefront-footer-credits-widget-area' );
    }
    
    add_action( 'storefront_footer', 'dexter_storefront_footer_credits_widget_area', 20 );
    
    1. Cool stuff

Questions? Feedback? Customization? Leave your comment now!
_____

If you are writing code, please wrap it like so: [php]code_here[/php]. Failure to complying with this, as well as going off topic or not using the English language will result in comment disapproval. You should expect a reply in about 2 weeks - this is a popular blog but I need to get paid work done first. Please consider joining the Business Bloomer Club to get quick WooCommerce support. Thank you!

Your email address will not be published. Required fields are marked *