Archived topic
How to output header somewhere else
3 replies · Started by bruno on October 25, 2021
Hi
I have a very specific need : I want to output the whole header somewhere else than the header, then move it freely with CSS flex.
I have no problem removing it from the header with
remove_action( 'generate_header','generate_construct_header' );
But how can I output it somewhere like the footer ?
Thanks
Hi Bruno,
You can try this:
add_action( 'generate_footer','generate_construct_header' );
If you want to move it to somewhere else, just replace the generate_footer with other GP hook names.
Let me know if this helps :)
Works perfectly, thanks !
You are welcome :)