Hi Tom.
I created a new header element for category archives. Am i able to add this action inside this header or have i to create and add it in a new hook? Will it work if i paste this code in a new hook element and select the display options for inside header?
Thanx.
Elements > Header can’t execute PHP. And the code Tom has provided is already applying the Hook, its best added to a Child Function file or using Code snippets plugin. See here: