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        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli, 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        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli, 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        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli, 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        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli, 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        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli, 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        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli, 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

  • Storefront Theme Visual Hook Guide
    Here’s a visual hook guide for Storefront Theme by WooCommerce. This visual guide belongs to my “Visual Hook Guide Series“, that I’ve put together so that you can find WooCommerce hooks quickly and easily by seeing their actual locations. Also, you can copy & paste in seconds and speed up your customization time. Let me […]
  • WooCommerce: Hide “Showing x-y of z results” @ Shop Page
    This is quite an annoying thing in WooCommerce when you have just a few products. Besides, if you only have 1 product in a given category, the notice “Showing the Single Result” will appear on top of the category page. So, how do we remove the whole “Showing 1โ€“15 of 178 results” element from the […]
  • WooCommerce: Add an Icon to the Add to Cart Buttons
    Ecommerce is all about user experience, and making it easier for people to add to cart and checkout smoothly. Reducing the number of checkout fields is a great idea for example – as well as graphically communicating your number 1 objective: “please add to cart now!”. So, how do you add an icon (or an […]
  • WooCommerce + Storefront Theme: Hide Homepage Title
    The Storefront theme displays the homepage H1 title by default, no matter if you use the “Default” or the “Homepage” page template. Of course, you could do it via CSS, with a simple “display:none”. Even better, you could completely avoid loading the homepage title by using PHP (SEOs out there: better not to load an […]
  • WooCommerce: 10 Crucial Issues That Should Be Fixed Right Now
    I just spent the last 3 days in Porto with another 2,300 WordPressers at the first in-person WordCamp Europe since Berlin 2019. I had a blast, held a nice (yet long) workshop, spoke to many, but got tired too soon. Later on, I realized that that tiredness was something more serious – in fact I […]

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 *