WordPress.org

Ready to get started?Download WordPress

Forums

Blog title appearing as page title (8 posts)

  1. becauseitisthere
    Member
    Posted 1 year ago #

    Hi all,

    For some strange reason the name of my latest blog title is appearing as the title of the page. Every other page is fine. Don't quite understand why.

    Any body able to help?

    The site is becauseitisthere.co.uk.

    Many thanks,

    Kevin

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    What title did you give to your Blog page?

  3. becauseitisthere
    Member
    Posted 1 year ago #

    I used Blog. It shows up on the menu find but when you view the page it just shows the post title as blog title

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Have you tried switching to the Twenty Eleven theme to rule out any theme-specific problems?

  5. becauseitisthere
    Member
    Posted 1 year ago #

    Good idea - will try that

  6. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    your theme is using 'the_title()' outside of the loop.

    in this line in index.php:

    <h1 class="page-title"><?php the_title(); ?></h1>

    change to:

    <h1 class="page-title"><?php if( is_home() && $blog_id = get_option( 'page_for_posts' ) ) { echo apply_filters('the_title',get_page( $blog_id )->post_title); } else { the_title(); } ?></h1>
  7. becauseitisthere
    Member
    Posted 1 year ago #

    Fantastic! Very much appreciated!

    Any chance you could take a look at this too?

    - http://wordpress.org/support/topic/paragraph-spacing-19?replies=5

    Many thanks,

    Kevin

  8. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic