Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save braddalton/6408311 to your computer and use it in GitHub Desktop.

Select an option

Save braddalton/6408311 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_home() )
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>';
}
@MakeYourselfVisible

Copy link
Copy Markdown

Hi Brad,

Thanks for the code. For some reason when I replace the tagline section code in functions.php with the code you have here, it still shows the tagline, it's just overlapping the header section now. Any ideas?

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