Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save generatepress/4cfa628cec96088dcbf8dd8cf399b83e to your computer and use it in GitHub Desktop.
Save generatepress/4cfa628cec96088dcbf8dd8cf399b83e to your computer and use it in GitHub Desktop.
generate_header_items() has been simplified so you can easily change the order or elements in the header
if ( ! function_exists( 'generate_header_items' ) ) :
/**
* Build the header
*
* Wrapping this into a function allows us to customize the order
*
* @since 1.2.9.7
*/
function generate_header_items()
{
// Header widget
generate_construct_header_widget();
// Site title and tagline
generate_construct_site_title();
// Site logo
generate_construct_logo();
}
endif;
@fyrmanrob
Copy link

Where is the 'generate_header_items' function located? I am trying to add two more images to the header via a function.

@olegi4sam
Copy link

In wp-content/themes/generatepress/inc/template-tags.php

@pookywiss
Copy link

Now in wp-content/themes/generatepress/inc/structure/header.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment