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*

Page titles not appearing

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7822
    locka
    Participant

    I been though lots of the post about page titles but i’m lost I like the page title to appear in the graybar where the breadcrumbs sit. Now this happens on any page that has no template selected I.E if you do a quick edit the template page is blank. PAges that state they are using the default template do not display this.

    Strangely if I do full edit the page which does display the title also shows it using the default template

    I’m afraid my site is not yet live so cannot show.

    Am I missing something?

    #7829
    Rabin Shrestha
    Participant

    Hi Locka,

    The grey bar appears only when you select any page template for the page. We have designed our theme this way. When you use normal page the grey bar will not appear.

    Rabin

    #7853
    locka
    Participant

    ok thanks for that however for those of us that would like the feature you will need to modify the code. To do this open following file attitude\library\structure\header-extensions.php

    Then go down to line 510 remove the last elseif statement and copy line 511 to replace line 515 please see code below to help

    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()  ) { ******REMOVE****
    		$attitude_header_title = get_the_title();******MOVE****
    	} ******REMOVE****
    	else {
    		$attitude_header_title = '';  ******REPLACE****
    	}
    
    	return $attitude_header_title;
    
    }
    endif;
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.