Archived topic
Inc folder - cannot be override with child theme
1 reply · Started by Vicky on November 21, 2019
Hi Support!
We have a developer to add social media + a custom menu in the header file (right side of the logo section) for the website. He advised us that the code cannot be placed in the child theme that the inc/structure folder do not allow the child theme to modify the header.php file. These custom codes would disappear if we want to update the parent theme to the latest version.
Is there any solution to allow us to retain social media and custom menu in the header file and to ensure the GeneratePress parent to be up to date?
Thanks!
Vicky
Hi there,
you would need to use a Child Theme if you must edit the theme templates.
Alternatively you can use the Hook Element to insert the content:
https://docs.generatepress.com/article/hooks-element-overview/