My Slider Has Stopped Working!
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?
Please clarify.AdminQuote: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:Quote: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.
- You must be logged in to reply to this topic.