Problem with Site Title

Discussion in 'Blogging' started by Kaabi, Feb 13, 2011.

  1. #1
    Hey guys! I am starting up a business called HappyEye Gifts, and if you check out the site, you can see that the title says "| Happy Eye Gifts", with that bar in front. Does anybody know how I can remove that? I think it has something to do with altering this piece of code:

    <title><?php
    global $page, $paged;
    //wp_title('|', true, 'right');
    bloginfo('name');
    $site_description = get_bloginfo('description', 'display');
    if ($site_description && ( is_home() || is_front_page() ))
        echo " | $site_description";
    if ($paged >= 2 || $page >= 2)
        echo ' | ' . sprintf(__('Page %s', 'clearstyle'), max($paged, $page));
    ?></title>
    Code (markup):
    If anybody can help me with this, that'd be awesome. Thanks!
     
    Kaabi, Feb 13, 2011 IP
  2. kiramanic

    kiramanic Peon

    Messages:
    205
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The code looks right, but for some reason the homepage is being treated as an inner page (you can tell because the site title is in a div instead of an h1). How is the homepage set? Did you set it in admin (settings > reading) or does the theme just automatically display a homepage template?
     
    kiramanic, Feb 13, 2011 IP
  3. Kaabi

    Kaabi Well-Known Member

    Messages:
    1,267
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    153
    #3
    It seems the front page is set to display a Home Page, which is a page like the others. This is a custom template so many that's why it's like this. I would really like to find a relatively simple way to change this though, since it doesn't look good. Also, do you know if this would have negative SEO value too? I can't see any way that it wouldn't hurt that as well.
     
    Kaabi, Feb 13, 2011 IP
  4. kiramanic

    kiramanic Peon

    Messages:
    205
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That's really strange. Maybe it's because it's 3am here but I can't think of anything to explain it, sorry! Hopefully someone else without such a tired brain will be along in a minute :D
     
    kiramanic, Feb 13, 2011 IP
  5. Kaabi

    Kaabi Well-Known Member

    Messages:
    1,267
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    153
    #5
    Alright, I'll email my designer as well. I'll PM you if that doesn't work.
     
    Kaabi, Feb 13, 2011 IP
  6. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #6
    The two slash marks on the second line means the line is commented out, so the wp_title() function is not running. It looks like they replaced that with bloginfo('name') on the third line. Pretty sure that does not echo to screen. Try changing that line to 'echo bloginfo('name');'
     
    Dodger, Feb 14, 2011 IP
  7. kiramanic

    kiramanic Peon

    Messages:
    205
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #7
    That right there is an example of a not-tired brain :p
     
    kiramanic, Feb 14, 2011 IP
  8. Kaabi

    Kaabi Well-Known Member

    Messages:
    1,267
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    153
    #8
    Thank you for that suggestion. I edited the code, but it did not seem to change anything. I kept it that way now though, but do you have any other ideas about how to do it?
     
    Kaabi, Feb 16, 2011 IP
  9. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #9
    No suggestions. But that "pipe" symbol is in your code. If that is all you want to get rid of, then take it out.

    Also, in your General Settings, what did you set the Title and Description of your blog to? The way you wrote the title out, it appears that the Title may be blank and the Description is set to "Happy Eye Gifts".
     
    Dodger, Feb 16, 2011 IP
  10. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Uncomment the line for wp_title, then comment out the next line for bloginfo('name').

    
    wp_title('|', true, 'right');
    //bloginfo('name');
    
    PHP:
    See what happens.
     
    Dodger, Feb 18, 2011 IP
  11. Kaabi

    Kaabi Well-Known Member

    Messages:
    1,267
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    153
    #11
    I tried that and it did not seem to work. This is ridiculous how such a simple thing is causing so many problems, but it really bothers me having the title like that and I will do anything to fix this!
     
    Kaabi, Feb 21, 2011 IP
  12. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Anything? PM me.
     
    Dodger, Feb 22, 2011 IP
  13. Kaabi

    Kaabi Well-Known Member

    Messages:
    1,267
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    153
    #13
    Ha ha, I figured it out! It was so simple, I just had to input a title into the Home page, and now it shows up "Happy Gifts | HappyEye Gifts". So awesome, but thanks very much for the help!
     
    Kaabi, Feb 26, 2011 IP