Created
December 27, 2017 22:11
-
-
Save braddalton/62fd919d8ebedeb76346e2b2a1b0bdd1 to your computer and use it in GitHub Desktop.
Minimum Pro Site Tagline https://wp.me/p1lTu0-hgA
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
//* Add the site tagline section | |
add_action( 'genesis_after_header', 'minimum_site_tagline' ); | |
function minimum_site_tagline() { | |
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>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment