• So here is the deal. I created a child theme (parent theme Fooding) and the child theme is working fine when it comes to modifying styles. The problem is I also created a template-tags.php in the inc folder within the child theme (following the file structure of the parent) because I wanted to modify the display of comments (In the parent theme the comment authors name was not displaying).

    When I was running the site on the parent theme the mods I made to the template-tags.php worked fine. Running on the child theme with the modified template-tags.php in the child theme the mods don’t work. Seems the template-tags.php in the child theme is not overriding the parent.

    Any ideas?

Viewing 1 replies (of 1 total)
  • The problems seems to be that the template-tag.php file is not something that is included by WordPress by default. For your code to run you will need to do 1 of 2 things:
    1. Add your custom template-tags.php code snippets into your functions.php file.
    or
    2. Include the template tag file from within your functions.php (something like):

    require get_template_directory() . '/inc/template-tags.php';

    Hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Getting child theme mods to work’ is closed to new replies.