WordPress.org

Ready to get started?Download WordPress

Forums

Changing the title structure (11 posts)

  1. vandelay91
    Member
    Posted 5 years ago #

    I want to change how the title is displayed at the top of the browser.

    At the moment mine is "Blog Name >> Page Name"

    I want it to be "Page Name | Blog Name" instead.

    edit: I managed to reverse theorder.... so it's now ">> Page Name | Blog Name" but as you can see the ">>' arrows are there, how do I remove them?

  2. rmk80
    Member
    Posted 5 years ago #

    You need to change

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

    into

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

    if you don't specify a character in wp_title(); it defaults the ">>' symbol.

  3. vandelay91
    Member
    Posted 5 years ago #

    Thanks for that.

    Is it possible to have the blog title after the page/post name instead though and still have the | in between?

  4. vandelay91
    Member
    Posted 5 years ago #

    Bump.

  5. vandelay91
    Member
    Posted 5 years ago #

    Once again.

  6. vandelay91
    Member
    Posted 5 years ago #

    And again.

  7. jghjgjghjmn
    Member
    Posted 5 years ago #

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

  8. tsguitar
    Member
    Posted 5 years ago #

    Don't bump.

    if you don't specify a character in wp_title(); it defaults the ">>' symbol.

    That should tell you that you need to specify something in wp_title in order to remove those brackets. Using wp_title('') should do the trick.

    This displays your blog title:
    <?php bloginfo('name'); ?>

    This displays the title of the current entry/page:
    <?php wp_title(); ?>

    Looking both of those up in the codex to find out what the options are:
    http://codex.wordpress.org/Template_Tags/bloginfo
    http://codex.wordpress.org/Template_Tags/wp_title

    Your specific concern already addressed:
    http://codex.wordpress.org/Template_Tags/wp_title#Separator_with_Blog_Name_and_Title_Reversed

    Now you should be able to put those things into whatever order you need.

  9. vandelay91
    Member
    Posted 5 years ago #

    Don't bump? Would you rather I created a new thread every day?

    I only ever bumped after 24 hours.

    Anyway, thanks. :)

  10. redhousepainter
    Member
    Posted 5 years ago #

    You could also have a look at the All In One SEO Plugin. It allows you to change all that stuff.

    If you bump you get told not to. If you start a duplicate thread you get told not to. I suppose slowly disappearing into the oblivion of the WordPress forum is your only polite option.

  11. tsguitar
    Member
    Posted 5 years ago #

    Let's focus on your issue. If that resolved your problem, can you mark this as resolved so everyone knows? Did this solve your problem? Did you find a solution in one of the links and/or code posted on this page?

    As far as bumping goes, yeah, the polite option is the better one. That's almost always the case. You slowly sink into oblivion if you move off the front pages and no one sees fit to respond. That's the way forums work; that's your peers telling you something. No response to your original post means that no one wants to take the time. You could reword your request, post back with the results of your experimentation, update with research you've done to solve your problem, tell about the search terms you've entered to find your own answer, but otherwise just wait. We don't all only look at page one of the forum.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.