Skip to content

Instantly share code, notes, and snippets.

@ryandolankayak
Created April 3, 2014 05:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryandolankayak/9948800 to your computer and use it in GitHub Desktop.
Save ryandolankayak/9948800 to your computer and use it in GitHub Desktop.
Portfolio Page Title in Minimum Pro Theme Site Tagline Area
//* Add the site tagline section
add_action( 'genesis_after_header', 'minimum_site_tagline' );
function minimum_site_tagline() {
if ( is_front_page() ) {
return;
}
printf( '<div %s>', genesis_attr( 'site-tagline' ) );
genesis_structural_wrap( 'site-tagline' );
printf( '<div %s>', genesis_attr( 'site-tagline-left' ) );
if ( is_page() || is_single() || is_post_type_archive('portfolio') ) :
genesis_do_post_title();
else :
printf( '<p %s>%s</p>', genesis_attr( 'site-description' ), esc_html( get_bloginfo( 'description' ) ) );
endif;
echo '</div>';
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