Home › Forums › Support › Child theme javascript and include files › Reply To: Child theme javascript and include files
November 30, 2015 at 5:29 pm
#156907
Tom
Lead Developer
Lead Developer
Hi Sally,
Instead of doing it that way (and potentially missing out on anything I add to the template-tags.php file in the future), look for the functions you want to alter.
If they’re wrapped in a function_exists tag like this:
if ( ! function_exists( 'function_name' ) ) :
function function_name()
{
}
endif;
It means I’ve made it so you can overwrite that function.
Simply copy the function (and ! function_exists tag) into your functions.php file and make your changes, and it will overwrite the theme’s function.
Hope this helps 🙂