Last active
August 29, 2015 13:59
-
-
Save srikat/10617747 to your computer and use it in GitHub Desktop.
Replacing Site Tagline on Pages in Minimum Pro with Custom text using Advanced Custom Fields. http://sridharkatakam.com/how-to-replace-site-tagline-on-pages-in-minimum-pro-with-custom-text-using-advanced-custom-fields/
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
printf( '<div %s>', genesis_attr( 'site-tagline-left' ) ); | |
printf( '<p %s>%s</p>', genesis_attr( 'site-description' ), esc_html( get_bloginfo( 'description' ) ) ); | |
echo '</div>'; |
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
printf( '<div %s>', genesis_attr( 'site-tagline-left' ) ); | |
$tagline = get_bloginfo( 'description' ); | |
if ( is_page() && get_field('custom_site_tagline_text') ) { | |
$tagline = get_field( 'custom_site_tagline_text' ); | |
} | |
printf( '<p %s>%s</p>', genesis_attr( 'site-description' ), esc_html( $tagline ) ); | |
echo '</div>'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment