Skip to content

Instantly share code, notes, and snippets.

@srikat
Last active August 29, 2015 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save srikat/10617747 to your computer and use it in GitHub Desktop.
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/
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-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