Does Header get modified after a theme update?

Hello!

If I am going to add custom code to the theme header.php file, should I use a child theme or is it ok to add it to the theme’s header file?

Thank you,
William

Hi William,

Thanks for reaching out.
I would suggest you add the same code into the child theme as header.php will be overriden once you update the theme. I would also suggest you check the following thread, which may help with how you can add the header.php file into the child theme.

Hope it helps.
Thanks

Thank you, Perfect!

You are most welcome William

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.