WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How do I alter the » character that precedes wp_title (12 posts)

  1. emortell
    Member
    Posted 7 years ago #

    I'd like to change the » charcter that separates the blog name and post name ( » ) in a wordpress 2.1 blog. I can't find the character anywhwere in the post.php or page.php files but yet it appears before the wp_title. Is this character insterted in the fly from the my sql side? Is there a way I can remove it or change it?

    Thanks.

    [sig moderated]

  2. Chris_K
    Member
    Posted 7 years ago #

    Check (most likely) your theme's header. And look for » -- that's what makes a »

  3. emortell
    Member
    Posted 7 years ago #

    I looked there and nothing. Where ever I use or move the <?php wp_title(); ?> code the » preceds it. Example:
    If I alter page.php in the theme so the Page title appears before the blog info ...like this...

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

    The page title appears like this:
    » Pagetitle | blogInfo

    I just want to drop the "»" but I don't see it anywhere in the code...I Know waht I'm looking for ---- & r a q uo ;
    Am I crazy?

    [sig moderated]

  4. Chris_K
    Member
    Posted 7 years ago #

    Does your theme have a header.php? That's where I'd be looking.

  5. emortell
    Member
    Posted 7 years ago #

    Yes it does, but there is no indication of the & r a q uo ; code anywhere:

    Are signatures not allowed ?
    ...oops...nevermind that question...

    E: Signatures
    Signatures on all posts will be removed. Signatures create clutter and distract from the information and help we are trying to provide.

  6. emortell
    Member
    Posted 7 years ago #

    Here is why I don't think this is part of the theme or header:
    (beside that fact I can’t find the code anywhere)

    If I move <?php wp_title(); ?> into the meta keywords area of a given page and then examine the keyword meta after the page is generated it includes the & r a q uo ; before the wp_title in the keyword meta data.

    It appears to me as if the & r a q uo ; charcater is generated as part of the <?php wp_title(); ?>.

    Does that make any sense. I'm puling my hair out and there isn't a whole lot left :)

  7. Chris_K
    Member
    Posted 7 years ago #

    Odd. I don't recall that being hard-coded anywhere. And, assuming I found your blog, you have two of 'em in the <title>!

    Let's take another tack: Can you copy your theme's header.php over to http://wordpress.pastebin.ca/ and post the link back here?

    I'd like to have a peek at it.

  8. Ajd777
    Member
    Posted 7 years ago #

    wp_title automatically outputs the symbol. Just pass the argument '' to the title and it should work.
    EG
    <?php wp_title('');?>

  9. Chris_K
    Member
    Posted 7 years ago #

    ... and this is why we shouldn't try and do support with a 100+ fever and flu.

    I'm so sorry for wasting your time, emortell.

  10. emortell
    Member
    Posted 7 years ago #

    Ok done.

    Thanks or tying to unravel this with me.

    "assuming I found your blog"
    This issue is not with my Captain's blog :)
    I am too afraid to upgrade that one to ver 2.1 for fear I'll kill all my links and loose my posts.

  11. Ajd777
    Member
    Posted 7 years ago #

    this is why we shouldn't try and do support with a 100+ fever and flu."
    Ahah I knew something had to have been wrong.

    If for some reason you actually need it to show up in other places and only want it to remove just first one:
    <?php echo trim(wp_title('&raquo;',false), '&raquo; ');?>

  12. emortell
    Member
    Posted 7 years ago #

    HandySolo,
    No waste of time at all. I apreciate any help I can get ;)
    Feel Better!

    Ajd777,
    Thanks very much for solving my issue!

Topic Closed

This topic has been closed to new replies.

About this Topic