usually a wordpress blog shows the following:
homepage title: BLOG_NAME
individual post page: BLOG_NAME - POST_NAME
I want mine to display the blog name for the title on the home page and each post page to ONLY have the post name for the title. I've modified my header.php file and I've gotten this far...
homepage title: ~ BLOG_NAME
individual post page title: POST_NAME ~ BLOG_NAME
but I want the individual post page to only be: POST_NAME
(and not have the blog name after it!)
Can you see what I should change to do this?
Code: Select all
<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>FYI: for reference, anyone wanting to see how it worked, my blog is the Trade Show Guru.