generate_header hook
-
Hi, I am trying to add content inside the existing header using the generate_header hook but it generates the content above the header tag and not inside. Is it normal and if so what should I do to generate content inside the header ? My code :
function mb_add_page_title(){ if ( ! is_front_page() ) : ?><?php the_title(); ?><?php endif; } add_action( 'generate_header','mb_add_page_title' );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘generate_header hook’ is closed to new replies.
