Forums

Need help with site title (5 posts)

  1. benmackie
    Member
    Posted 1 year ago #

    I think this question has been asked a thousand time, with the issue usually being an SEO plugin, but I have no plugins. My site says:

    Site Title:Home

    I don't want a colon(:) or "home" after the title.

    I am having the issue on two sites.

    http://amyelk.strategicguru.com/
    http://stalbansparish.org/

  2. Roy
    Member
    Posted 1 year ago #

    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.

  3. Dave Redfern
    Member
    Posted 1 year ago #

    Hello,

    You can do:

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

    Hope this helps.

  4. benmackie
    Member
    Posted 1 year ago #

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

  5. Dave Redfern
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.