Recently we should deal with Storefront, the latest theme developed by the Woocommerce team, to create the demo for the Storefront Theme Mega Menu. One thing we noticed at the beginning was that there are was no options to easily change the default footer credit text.
The copyright text is one of the first settings any developer change when they start to customize the theme but, although Storefront is a well designed and coded theme, you have to create a child theme to change the footer copyright.
Storefront Default Footer Text
After the installation, the Storefront set a default credit text in the footer which looks like this
Storefront Change Footer Text
Create and install a Storefront child theme. If you’re not sure about how to build a child theme for Storefront, please visit this tutorial.
Then just write a function in your child theme’s functions.php file.
This function will replace a function called storefront_credit(), that is responsible to output the footer text. This function is placed on the file \storefront\inc\storefront-template-functions.php
Why does it work?
The original function in the mentioned file is wrapped with a conditional statement that checks if the function was previously declared.If a function with this name exists, then the original function will be replaced with yours.
Storefront Footer Text Plugin
Another option is to use the plugin we’ve prepared to do this task. You’ll only have to install and activate the Storefront Footer Text plugin, pretty simple!