Home › Forums › Support › How to over write inc/template-tags.php in my child theme? › Reply To: How to over write inc/template-tags.php in my child theme?
January 18, 2016 at 11:07 am
#166420
Tom
Lead Developer
Lead Developer
I wouldn’t do that – it can cause big problems for future updates when I add more functions in there and call those functions elsewhere (you’ll get an undefined function fatal error).
Every function in that file is wrapped in a function_exists() function, which means you can copy the entire function (including the function_exists() part) and add it to your child theme/plugin and it will overwrite the core function.
That’s definitely the way you should go about it 🙂