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!
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?
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.
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
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');'
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?
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".
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.
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!
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!