hi,
I'm trying to change my blog's header file...

Right now the individual blog page titles look like this:
POST_NAME - BLOG_NAME

I want them to look like this:
POST_NAME
(i.e. post name only)
And I want the homepage title to be the blog title only, which it currently is...

can you tell me what to change? Thanks.

<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<title><?php if (is_single() || is_page() || is_archive()) { wp_title('',true); } ?> ~ <?php bloginfo('name'); ?></title>

<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/custom.css" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<?php wp_head(); ?>
</head>
<body class="custom">

<div id="container">

<div id="masthead">
    <h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
    <h3><?php bloginfo('description'); ?></h3>
</div>

<ul id="nav">
    <li <?php if (is_home()) echo('class="current_page_item" '); ?>><a href="<?php bloginfo('url'); ?>">front page</a></li>
    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>


</ul>

<div id="header_img">
    <img src="<?php bloginfo('template_url'); ?>/images/my-header.jpg" width="770px" height="140px" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?> " />

</div>

    Not sure if I am underthinking this but surely changing

    <title><?php if (is_single() || is_page() || is_archive()) { wp_title('',true); } ?> ~ <?php bloginfo('name'); ?></title>
    

    to

    <title><?php if (is_single() || is_page() || is_archive()) { wp_title('',true); } ?></title>
    

    Will do it.

      hi khaine,
      Thanks for the suggestion! I got the following solution that worked:

      <title><?php if (is_single() || is_page() || is_archive()) { wp_title('',true); } else { echo bloginfo('name'); } ?></title>
      

      I need to compare it to yours and see if it is the same.

        By the way, I love your signature. I had to google it to see who this guy was.
        Here's the whole sonnet from wiki. I'm pretty sure I've heard it before, but it is way cool!

        OZYMANDIAS

        I met a traveller from an antique land
        Who said: Two vast and trunkless legs of stone
        Stand in the desert. Near them on the sand,
        Half sunk, a shatter'd visage lies, whose frown
        And wrinkled lip and sneer of cold command
        Tell that its sculptor well those passions read
        Which yet survive, stamp'd on these lifeless things,
        The hand that mock'd them and the heart that fed.
        And on the pedestal these words appear:
        "My name is Ozymandias, king of kings:
        Look on my works, ye Mighty, and despair!"
        Nothing beside remains. Round the decay
        Of that colossal wreck, boundless and bare,
        The lone and level sands stretch far away.
        - Percy Bysshe Shelley, 1818

          Write a Reply...