Child theme: custom template files break styling
-
Hello,
I have created a child theme using the exact instructions this link provides:
https://codex.www.ads-software.com/Child_Themes
But when I add my custom header.php and footer.php to the child theme to override the header and footer of the parent, all styling on the site breaks. The header and footer markup is displayed but with no styling AND the styling for the unedited body section also breaks. The link above clearly states:
“if you want to change the PHP code for the site header, you can include a header.php in your child theme’s directory, and that file will be used instead of the parent theme’s header.php.”
I have done just that, included my own header/footer.php in child directory, and it is displayed on my site but with no styling, and the rest of the styling for the unedited body section is also broken.
I can include relevant code snippets upon request, but seeing as there is no need to call these files in functions.php or anywhere else, I feel this may not be necessary.
Thanks a lot and sorry if this is a stupid question.
- The topic ‘Child theme: custom template files break styling’ is closed to new replies.