Home › Forums › Support › Override inc/structure/header.php This topic has 5 replies, 2 voices, and was last updated 5 years, 7 months ago by David. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts August 12, 2020 at 2:28 am #1398400 Daniele Hi guys, I need to override this file in my child theme inc/structure/header.php to add some content inside #masthead container. So I replicated the folder structure in my child theme, but the original file is always called. Can you explain me how to override this particular file? thanks August 12, 2020 at 6:31 am #1398757 DavidStaff Customer Support Hi there, Instead of creating a new header template – you can use the Hook Element to insert content: https://docs.generatepress.com/article/hooks-element-overview/ Let us know if you need help with that. August 13, 2020 at 12:52 am #1400215 Daniele Hi David, I tried with before_header_content. The problem is that the output is inside “inside-header” but I would like to output it directly inside #masthead because I would like to stretch it a little more: https://imgur.com/HpKz6D7 August 13, 2020 at 2:44 am #1400399 DavidStaff Customer Support Does it have to be inside the Masthead ? You could use the before_header hook. If it has to be inside the masthead then share a link by editing your original topic and adding it to the site url field. And ill take a look. August 13, 2020 at 2:53 am #1400412 Daniele with before_header it worked! thanks August 13, 2020 at 3:19 am #1400460 DavidStaff Customer Support Glad to hear that. Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In