- This topic has 2 replies, 2 voices, and was last updated 10 years, 2 months ago by locka.
-
AuthorPosts
-
February 18, 2014 at 1:12 am #7822lockaParticipant
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?
February 18, 2014 at 6:57 am #7829Rabin ShresthaParticipantHi 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
February 19, 2014 at 5:04 am #7853lockaParticipantok 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;
-
AuthorPosts
- You must be logged in to reply to this topic.