• By default, the page titles for my posts look something like this:

    So and so’s Blog » Blog Archive » This post is amazing

    In google this looks ugly, so how do I edit wordpress to just use the post title in the page title, the title in this case being “This post is amazing”. In other words, I want to discard all other info to the left of my page title (‘So and so’s Blog » Blog Archive »’).

    Is this easy to do?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter nottinghamjazz

    (@nottinghamjazz)

    Thanks – I couldn’t figure out which line to edit in my blog admin.

    Can I clarify I’m talking about the page title (ie the very top line in the browser window, where it says

    “WordPress › Support » changing page title for posts – Mozilla Firefox”

    Thanks

    You would need to use Administration > Appearance > Editor to edit the file containing that code.

    If you are using the WordPress Default Theme, the reference to wp_title is in the wp-content/themes/default/header.php file.

    Thread Starter nottinghamjazz

    (@nottinghamjazz)

    Thanks, that has helped me.

    I’m almost there.

    My header.php line now reads

    <title> <?php if ( is_single() ) ?> <?php wp_title(); ?> </title>

    How do I get rid of the “»” character at the very beginning of my html page title? That’s all! I don’t know how to interpret the php, or what the is_single if statement is all about

    Thread Starter nottinghamjazz

    (@nottinghamjazz)

    Oh, and one more thing. At the very top of my rendered page (above the blog header) there is a centred “//”

    Oops! What have I done?

    The wp_title article I linked above says:

    sep (string) Text to display before or after of the post title (i.e. the separator). By default (if sep is blank) then the » (») symbol will be placed before or after (specified by the seplocation) the post title.

    As for the “//” got to assume you left something in your header.php.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘changing page title for posts’ is closed to new replies.