Child theme template-tags.php

The theme I am using has a file inc/template-tags.php

that I

need to override child template-tags.php

Adding a file to my child themes folder, both folders with folders and folders with root child themes doesn't seem to override the parent file.

Adding include( get_stylesheet_directory() . '/inc/template-tags.php' );

my child functions.php

lead to WordPress white screen of death.

Does anyone know how to do this?

+3


source to share


1 answer


Answer

was to use the following inner child functions.php



if( ! function_exists(twentyfourteen_post_nav) ) { function twentyfourteen_post_nav() { DUMP MY EDITED CODE HERE }}

+6


source







All Articles