September 5, 2013 at 4:14 am
#3800
shawnhoffman
Participant
Okay- So I put this in functions.php
if ( ! function_exists( 'attitude_header_title' ) ) :
/**
* Show the title in header
*
* @since Attitude 1.0
*/
function attitude_header_title() {
if( is_archive() ) {
$attitude_header_title = single_cat_title( '', FALSE );
}
elseif( is_404() ) {
$attitude_header_title = __( 'Page NOT Found', 'attitude' );
}
elseif( is_search() ) {
$attitude_header_title = __( 'Search Results', 'attitude' );
}
elseif( is_page_template() ) {
$attitude_header_title = get_the_title();
}
elseif( is_page() ) {
$attitude_header_title = get_the_title();
}
else {
$attitude_header_title = '';
}
return $attitude_header_title;
}
endif;
Was that more work that needed?
Also – can I take out the title now where it was previously? I want it only in the grey area, and not where it was previously. Now it is in both places.