Archived topic
Header HTML for specific page
3 replies · Started by Ryan on March 1, 2021
Hi,
I need to use header html for a specific page. I thought I was doing this correctly with Elements--I added a new header element, put in the html and then setup a location rule to only show up for one page. However, when I do a developer tool search on that particular page, I can't find the html on that page.
Is this the correct way to put in a header script?
Hi there,
I believe the wp_head hook with a hook element is what you need:
https://docs.generatepress.com/article/wp-head/
https://docs.generatepress.com/article/hooks-element-overview/
Let me know if this helps :)
thank you sir, this worked
No problem :)