Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Created November 2, 2015 06:31
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 reasonstousegenesis/33738ce89f22501eb7e3 to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/33738ce89f22501eb7e3 to your computer and use it in GitHub Desktop.
Add a widget area to the site header with Genesis
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Add a widget area to the site header with Genesis
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/site-header/
*/
add_action( 'genesis_footer', 'rtug_header_widget_area' );
function rtug_header_widget_area() {
genesis_widget_area( 'site-header' ); // replace site-header with your widget area ID
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment