Site logo

Archived topic

wp_head hook question

3 replies · Started by Steve on November 17, 2020

Viewing posts 1–4 of 4

Please forgive my ignorance, but can I put more than one script (eg Adense code and Google Analytics code) in the same wp_head hook or do I need a separate one for each code?

Thanks

Hi there,

you can add as many scripts to a single wp_head hook as you want.
Some users prefer an individual hook for each script as it allows them to set different display rules for each, or so they can disable scripts individually.

Either method is good though.

Thank you David - I assumed it would be the case but wanted to check - Thanks for your very quick response!

You're welcome

This archived topic is closed to new replies.