I am trying to remove the default 'genesis_do_header' action from the genesis_header hook in order to format my own header layout; however, for some reason it is not working when I try to either inject it into my child theme's functions.php or header.php. The new function that I want does work, though I just end up with the header double-rendered with both the default and the new custom header :/ Any help would be much appreciated, thanks!

  • What action do you have that hooked to? Child theme loads first, so you can’t remove something that hasn’t been added yet. – Milo Jul 13 '18 at 19:20
  • That makes sense, but effectively I want it to render a custom header script instead of the genesis_do_header default action, which I would like to remove. I have attempted adjusting the priority value, but it does not seem to help much. – Chad Denaux Jul 13 '18 at 19:47
  • Typically you need to do the removal on the after_setup_theme action – Milo Jul 13 '18 at 20:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.