Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@fyrmanrob fyrmanrob commented Jul 13, 2016

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

@olegi4sam

This comment has been minimized.

Copy link

@olegi4sam olegi4sam commented Feb 23, 2017

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

@pookywiss

This comment has been minimized.

Copy link

@pookywiss pookywiss commented Jun 13, 2019

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