Site logo

Archived topic

One Hook Element for Header and Body

5 replies · Started by Scott Pringle on November 30, 2021

Viewing posts 1–6 of 6

I noticed that when I was adding a hook for body opening that there was a box above for adding code to the header.

Will one hook element add code to the header and to the location specified below?

Thanks,
Scott

Hi there,

in the Hook Element, there is only one field for adding your code to. So you would need to create a separate element for wp_head and wp_body_open

If you see more than one field then i assume you have a plugin that is adding that.

Got it. That was what I was doing. I think it is misleading to have that area at the top for header and the area below for a different hook when only one is active. Just my opinion.

Thank you for the reply and for supporting such great software!

If theres a always a field for the Header then its not coming from GP.
Do you have any plugins for adding stuff to the header ?

Ahhh, You are correct. It was a plugin. And this is why I was visiting this topic to add a hook element and then deactivate an unnecessary plugin.

Thank you!

Glad to be of help :)

This archived topic is closed to new replies.