Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save markjaquith/7868821 to your computer and use it in GitHub Desktop.
Save markjaquith/7868821 to your computer and use it in GitHub Desktop.
//* Add the site tagline section
add_action( 'genesis_after_header', 'minimum_site_tagline');
function minimum_site_tagline() {
if ( !is_page( 'ಠ_ಠ' ) )
printf( '<div %s>', genesis_attr( 'site-tagline' ) );
genesis_structural_wrap( 'site-tagline' );
printf( '<div %s>', genesis_attr( 'site-tagline-left' ) );
printf( '<p %s>%s</p>', genesis_attr( 'site-description' ), esc_html( get_bloginfo( 'description' ) ) );
echo '</div>';
printf( '<div %s>', genesis_attr( 'site-tagline-right' ) );
genesis_widget_area( 'site-tagline-right' );
echo '</div>';
genesis_structural_wrap( 'site-tagline', 'close' );
echo '</div>';
}
@seanmou
Copy link

seanmou commented Mar 31, 2018

Thanks! Doing so removes the site tagline, however disrupts the spacing between the header and content below. Do you know where in CSS to fix this? Thank you for the help.

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