The MU forums have moved to WordPress.org

Browser head title (11 posts)

  1. TTjip
    Member
    Posted 15 years ago #

    How do I remove the >> from my browser title?

    Example: http://tackletog.com/news/2009/03/09/new-berkley-gulp-alive-panfish-baits/

    You see ">> NEW Berkley Gulp! Alive! Panfish Baits - Mozilla Firefox"

  2. Ovidiu
    Member
    Posted 15 years ago #

    you are running wordpress, this is the wpmu forum!

    what you need to do is edit your theme, header.php change the title, mine looks something like: <title><?php wp_title(); ?></title> yours might be different.

    anyway, go ask in the wordpress forums...

  3. TTjip
    Member
    Posted 15 years ago #

    I'm running WPMU 2.7.

    I edited header.php to only show the subject in the browser title.

    Original: <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>

    Edited: <title><?php wp_title(); ?></title>

    Somehow the wp_title styles it with >>

    Why am I doing this, so search will show up with the subject and not the blog name infront of it.

  4. Ovidiu
    Member
    Posted 15 years ago #

    your source code says: `<meta name="generator" content="WordPress 2.7" />
    ` that lead me to believe you were running wordpress not wpmu.

    maybe you have an active plugin (SEO like) that tries to optimize your title?

  5. VentureMaker
    Member
    Posted 15 years ago #

    Ovi, WPMU also puts generator as 'WordPress <version>', not something else :)

  6. Ovidiu
    Member
    Posted 15 years ago #

    :-) never noticed, I replaced mine a long time ago

  7. SteveAtty
    Member
    Posted 15 years ago #

    It looks like its coded into some themes. There is a bit of logic in some of the header.php files:

    <title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' &raquo;'; } ?> <?php bloginfo('name'); ?> </title>

    So what you should get is Title >> Blogname.

  8. TTjip
    Member
    Posted 15 years ago #

    Yeah, it's coded somewhere, I haven't found it yet.
    I juggled the title info around to have SUBJECT TITLE - BLOG NAME

    Now it's showing >>Subject title - blogname

  9. SteveAtty
    Member
    Posted 15 years ago #

    As I said its in the header.php file for the theme » is the >> so if you want to get rid of it then remove that bit of logic

  10. TTjip
    Member
    Posted 15 years ago #

    Steve, sorry, didn't catch that. Thanks for your help.

  11. SteveAtty
    Member
    Posted 15 years ago #

    and of course the post interpreted the & raquo as the real deal.

    so

    <title><?php wp_title(''); ?> - <?php bloginfo('name'); ?> </title>

    Would do it

About this Topic