Viewing 4 replies - 1 through 4 (of 4 total)
  • Your theme gives the title of the pages and apparantly the index is called “home”. I don’t know if you can delete that from your header.php without removing the titles of every other page too.

    Hello,

    You can do:

    if(is_home()) {
    bloginfo('name');
    } else {
    bloginfo('name'); wp_title(':', true, 'left');
    }

    Hope this helps.

    Thread Starter benmackie

    (@benmackie)

    daveredfern – which php file is that in? I placed it in the <title></title> tags on header.php and no dice. Thanks, btw.

    Have you set the homepage as a page rather than the default listing? I looks that way, is_home() doesn’t play nice with that so you can do the following in the header.php template file:

    <title>
    	<?php
    		bloginfo('name');
    		if(!is_front_page()) {
    			echo ' ';
    			wp_title(':', true, 'left');
    		}
    	?>
    </title>

    Hope this works for you.

    Dave.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Need help with site title’ is closed to new replies.