Guide on Storefront theme Edit or Remove Footer Credits

The Storefront theme created by WooCommerce/Automattic has default footer credit content. So, it is as mentioned further, “Built with Storefront & WooCommerce | Privacy Policy | Copyright Website 2020”. Further, In this tutorial, we will learn how to alter Storefront theme Edit or Remove Footer Credits. 

Furthermore, you can easily edit or remove these default statements as it comes with ‘hooks’. It can be done without touching core files or duplicating existing templates. So, you can follow our snippet guide to edit or remove Storefront copyright content. 

PHP Snippet 1: Remove the Storefront copyright content(Credits) completely

add_action( 'wp', 'phpsof_remove_storefront_credits' );
 
function phpsof_remove_storefront_credits() {
   remove_action( 'storefront_footer', 'storefront_credit', 20 );
}

PHP Snippet 2: Only Remove the Storefront Copyright Link named ‘Built with Storefront’ 

add_filter( 'storefront_credit_link', '__return_false' );

PHP Snippet 3: Only Remove the Storefront Copyright Privacy Policy Link

add_filter( 'storefront_privacy_policy_link', '__return_false' );

PHP Snippet 4: Remove the Storefront Copyright Link ‘Built with Storefront’ and Privacy Policy 

add_filter( 'storefront_credit_links_output', '__return_empty_string' );

PHP Snippet 5: Remove the Storefront Footer Text ‘Copyright Website 2020’ only 

add_filter( 'storefront_copyright_text', '__return_empty_string' );

PHP Snippet 6: Edit the Storefront Footer Text ‘Copyright Website 2020

add_filter( 'storefront_copyright_text', 'phpsof_edit_storefront_copyright_text' );
 
function phpsof_edit_storefront_copyright_text() {
   $text = 'Copyright 2020-' . date( 'Y' ) . ' by PHP Stackoverflow';
   return $text;
}

Where to add the Snippet?

So, you can keep the PHP snippets in your child theme functions.php file (delete “?>” if you have any). CSS will go in your child theme style.css file. So, this is how you can alter Storefront theme Edit or Remove Footer Credits. 

Also Read, A Guide to Create WooCommerce Custom Login and Registration Pages 

A Stepwise Tutorial to Login with Instagram using PHP