WordPress.org

Ready to get started?Download WordPress

Forums

Remove blog name from title tag (2 posts)

  1. Kevin S
    Member
    Posted 3 years ago #

    Hi Guys,

    I am bit confused with my post title tag. Below is the original title code.
    <title><?php wp_title(''); ?><?php if(wp_title(' ', false)) { echo ' | '; } ?><?php bloginfo('name'); ?></title>

    Right now the title tag of the post shows up like "Title of the post | Blog Name" which i want to change it back to only "Title of the post" but whenevr i remove
    <?php if(wp_title(' ', false)) { echo ' | '; } ?><?php bloginfo('name'); ?> the blog name does not appear in Home page. I don't want to include "Blog" name with title tag in posts.

    If there is any solution please do let me know.

    Thanks

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

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

    http://codex.wordpress.org/Function_Reference/wp_title

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags