What files do you have in your child theme?
My Slider Has Stopped Working!(27 posts) (3 voices)
I have the header.php, the footer.php and the style.css and a blank functions.php....
If you see the theme's documentation page regarding child theme, you'll see that there's a note regarding replacing theme's files in the child theme (look under the "Special consideration" heading).
You'll have to delete the current header.php and footer.php files in your child theme, and redo the customisation again. Best to use the action hooks so that you'll avoid these issues the next time there's an update for the theme.
So what you are saying is that I should customize the footer.php and the header.php in the parent folder; and never load these files into the child folder. Or if I do make the changes, these should be done only in the child folder's footer.php and header.php files?
So what you are saying is that I should customize the footer.php and the header.php in the parent folder; and never load these files into the child folder.
No, you should not modify the files in the theme's folders at all. However, copying the
header.phpinto the child theme and modifying them in the child theme is only marginally better. This is explained in the theme's documentation that I linked to in previous post:
If you place any of the WordPress template files into the child theme, the corresponding files from the parent theme will not be loaded. This means that when you update the parent theme, and that those template files have changed in the updated parent theme, you will miss out on those changes, since WordPress will not load those files at all. This is why you should never replace the theme's template files in your child theme, unless absolutely necessary.
The best way is to use action hooks, or if that is not familiar to you, try the Action Hook Widget Areas.
Thank you very much; what I did is copied the child theme files off-line and compared them to the parent files; then I went line by line making and testing every modification as I go along. Now I have learnt my lesson! Thank you once again.....
I am almost back to my normal working theme...yipee!
This topic has been closed to new replies.