badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Reply To: Put page title in the breadcrumbs bar

#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.