generate_header_items() has been simplified so you can easily change the order or elements in the header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
In wp-content/themes/generatepress/inc/template-tags.php
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
Where is the 'generate_header_items' function located? I am trying to add two more images to the header via a function.