Remove Blog Name from Posts

Discussion in 'Blogging' started by djixas, Feb 2, 2008.

  1. #1
    So far my title is

    <title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' :'; } ?><?php bloginfo('name'); ?></title>
    Code (markup):
    How can I remove blog name after post title? As now it is: Post Title : Blog Title. tried to remove last php code line but then there is no blog name in home page...
     
    djixas, Feb 2, 2008 IP
  2. bond1

    bond1 Active Member

    Messages:
    248
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #2
    try to replace echo ' :'; with echo bloginfo('name');
     
    bond1, Feb 2, 2008 IP
  3. djixas

    djixas Well-Known Member

    Messages:
    749
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    110
    #3
    It repeats blog name in the posts twice now.
     
    djixas, Feb 2, 2008 IP
  4. bond1

    bond1 Active Member

    Messages:
    248
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #4
    <title><?php if(wp_title('', false)) {php wp_title(''); echo ' :'; } ?><? else php bloginfo('name'); ?></title>
    try this too:p
     
    bond1, Feb 2, 2008 IP
  5. djixas

    djixas Well-Known Member

    Messages:
    749
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    110
    #5
    Syntax error.
     
    djixas, Feb 2, 2008 IP
  6. bond1

    bond1 Active Member

    Messages:
    248
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #6
    sorry this is what i think working... try a google search
     
    bond1, Feb 2, 2008 IP
  7. Blonde Jon

    Blonde Jon Active Member Affiliate Manager

    Messages:
    745
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    58
    #7
    I would start back over with your old code and then just install the All In One SEO Pack plugin.
     
    Blonde Jon, Feb 2, 2008 IP
  8. MeetHere

    MeetHere Prominent Member

    Messages:
    15,399
    Likes Received:
    994
    Best Answers:
    0
    Trophy Points:
    330
    #8
    Yes, all-in-one seo plugin will help you to do it easily :)
     
    MeetHere, Feb 2, 2008 IP
  9. djixas

    djixas Well-Known Member

    Messages:
    749
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    110
    #9
    Well, there should be a way to change something so it won't add blog name at the end of each post title...
     
    djixas, Feb 2, 2008 IP
  10. Blonde Jon

    Blonde Jon Active Member Affiliate Manager

    Messages:
    745
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    58
    #10
    All in One SEO does it for you and it has other really nice seo factors. This below should do it also. I just hate to cut code because things change like WP versions etc. Plugins are a much nicer/ easier way to go in my opinion.

     
    Blonde Jon, Feb 2, 2008 IP
  11. FatKidUnleashed

    FatKidUnleashed Banned

    Messages:
    101
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    FatKidUnleashed, Feb 2, 2008 IP
  12. djixas

    djixas Well-Known Member

    Messages:
    749
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    110
    #12
    The following code removes blog title from index page + adds "archive" in blogpo sts.

    Anyway, thanks for everyone help, will have to install that plugin I guess.
     
    djixas, Feb 3, 2008 IP