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 Title

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2910
    mcnutman
    Participant

    How can I change the title on a page so its the same as on a blog page.

    At the moment on a blog page the title is displayed with:

    <div class="page-title-wrap">
    	    		<div class="container clearfix">
    	    			<?php
    		    		if( function_exists( 'attitude_breadcrumb' ) )
    						attitude_breadcrumb();
    				?>
    			   <h3 class="page-title"><?php echo attitude_header_title(); ?></h3><!-- .page-title -->
    			</div>
    </div>

    While the page titles are displayed with:

    <header class="entry-header">
      	<h2 class="entry-title">
    	<?php the_title(); ?>
    	</h2><!-- .entry-title -->
    </header>

    I’ve tried just pasting that in its place but 1. The title-wrap only goes across the top of the page content and not across the top of the sidebar, and 2. It doesn’t display the page title!

    How can I fix this?

    #2920
    Sanjip Shah
    Participant

    @mcnutman In the header-extensions.php file, look for this function attitude_header_title. Inside this function, add the following code just above the else condition.

    elseif( is_page()  ) {
    		$attitude_header_title = get_the_title();
    	}

    Hope this helps and also use a child theme for this customization so that you won’t lose the changes when you update the parent theme.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.