I'm trying to customise the Storefront theme from WooCommerce, by creating a child-theme. I've already done a couple of things in the 'functions.php' file, but I can't seem to overwrite the 'require' in the parent.
In my child-theme's 'functions.php' I'm trying to overwrite the file it requires in the parent's 'functions.php'. Unfortunately, when I do this, it keeps showing the required file the parent called for.
Below is the line of code I've tried:
require '/inc/storefront-template-hooks.php';
&
require get_template_directory() . '/inc/storefront-template-hooks.php';
What am I doing wrong?
remove_action()
lines to your functions.php to unhook those that you don't want. For example, in the file isadd_action( 'storefront_footer', 'storefront_credit', 20 );
so you can haveremove_action( 'storefront_footer', 'storefront_credit', 20 );
and, voila, no more footer credit! – Peter HvD Feb 26 '18 at 12:22