Home » Storefront Theme: Edit or Remove Footer Credits

Storefront Theme: Edit or Remove Footer Credits

by Tutor Aspire

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 tutoraspire.com FREE
 * @author        Tutor Aspire, BusinessBloomer.com
 * @testedwith    WooCommerce 4.6
 * @donate $9     https://tutoraspire.com
 */

add_action( 'wp', 'tutoraspire_remove_storefront_credits' );

function tutoraspire_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 tutoraspire.com FREE
 * @author        Tutor Aspire, BusinessBloomer.com
 * @testedwith    WooCommerce 4.6
 * @donate $9     https://tutoraspire.com
 */

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 tutoraspire.com FREE
 * @author        Tutor Aspire, BusinessBloomer.com
 * @testedwith    WooCommerce 4.6
 * @donate $9     https://tutoraspire.com
 */

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 tutoraspire.com FREE
 * @author        Tutor Aspire, BusinessBloomer.com
 * @testedwith    WooCommerce 4.6
 * @donate $9     https://tutoraspire.com
 */

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 tutoraspire.com FREE
 * @author        Tutor Aspire, BusinessBloomer.com
 * @testedwith    WooCommerce 4.6
 * @donate $9     https://tutoraspire.com
 */

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 tutoraspire.com FREE
 * @author        Tutor Aspire, BusinessBloomer.com
 * @testedwith    WooCommerce 4.6
 * @donate $9     https://tutoraspire.com
 */

add_filter( 'storefront_copyright_text', 'tutoraspire_edit_storefront_copyright_text' );

function tutoraspire_edit_storefront_copyright_text() {
   $text = 'Copyright 2011-' . date( 'Y' ) . ' by Tutor Aspire';
   return $text;
}

You may also like