Archived topic
How do I completely replace the header with my own code
2 replies · Started by Tom on May 12, 2021
Hi,
I need to add in my own header in place of the one that's there.
I need to add:
At end of <head>
- css
- javascript
At start of <body>
- php to execute
- Some html
I could hack around with header.php but I don't want to mess with the core files this time.
I'm looking into hooks but they seem to add things before and after header, is this the way to go?
Thank you
Thanks, I've fixed this using hooks and the wp_head and wp_body_open
Glad to hear you found the issue.