WordPress.org

Ready to get started?Download WordPress

Forums

Remove half of blog page title (3 posts)

  1. dianaascher
    Member
    Posted 1 year ago #

    Hi there,

    I've spent hours trying to figure out how to remove the site title part of the h1 line on my blog page. I have a static front page, and have a page called "Current Thinking" set for blog entries. The page shows up with the following title:

    Current Thinking: BSP: Behavioral Science & Policy

    I want it to say only Current Thinking. I've tried several alterations to the wp_title section, with no luck. Any ideas?

    http://pastebin.com/TJJHEYAu

    Site is behavioralpolicy.org/blog

  2. W.P. Ginfo
    Member
    Posted 1 year ago #

    KISS:
    Just Change the title of the article using the dashboard-editor.

    More complicated:
    Restrict the number of charakters shown.
    see:
    http://wordpress.org/support/topic/limit-title-to-25-characters?replies=11

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

    possibly replace this part:

    } else {
    		wp_title('',true);
    	} ?></h1>

    with:

    } elseif( is_home() && get_option( 'page_for_posts' ) ) {
    		echo get_the_title( get_option( 'page_for_posts' ) );
    	} else {
    		wp_title('',true);
    	} ?></h1>

    (untested)

Topic Closed

This topic has been closed to new replies.

About this Topic