-
-
Save srikat/18203247826199032c47 to your computer and use it in GitHub Desktop.
Page/Post title in Site Tagline Left area of Minimum Pro. http://sridharkatakam.com/show-pagepost-title-site-tagline-left-area-minimum-pro/
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' ) ); | |
if ( ( is_singular( 'page' ) && ! is_front_page() ) || is_single() ) { | |
genesis_do_post_title(); | |
} | |
else { | |
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
add_action( 'genesis_before_entry', 'sk_remove_titles_pages_posts' ); | |
function sk_remove_titles_pages_posts() { | |
if ( is_singular( array( 'post', 'page' ) ) ) { | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment