folks, i want to remove my blog title and archive thing (the part marked in red above) from appearing in SERP's. pls give me an straight forward solution.
I'm assuming that you;re using Digital Statement with no modifications. Open up your theme's header.php file and look for the following line: <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title> Code (markup): Change it to this: <title><?php wp_title(); ?></title> Code (markup): It would be best to use the file editor provided by your host. That way you don;t have to worry about downloading and uploading the file or messing with charset issues. Hope this helps, -drmike
Thank you theapparatus yes i am using digitalstatement. i did exactly what you sad. So it will take some time to take effect the changes in serp's right?
Yes, it'll take time for it to filter down into the search engines' databases. You can try rebuilding your sitemap and resubmitting it if you're using one. Since the bit has been removed, all of your page titles have changed.
tx, but i see removing the page title seems not a smart solution i can put it back from the backup if require, no problem in that. you see if you check my blog, the tab does not show the page title any way, for now ill remove that 'archive' word from titles. that seems ok for now
It seems what you gave is the real solution to remove the blog title. unfortunately, when i do that i am facing a weird problem. My blog title given in blog settings does not come to the home page in browser anything wrong with the theme? my settings as follows : Theme header <title><?php wp_title(); ?></title> if you check my blog, you will see the home page does not show the blog title. whats wrong?
Well you're not removing the page title with that change, you;re just removing the blogname and the archives bit. The wp_title function call should be displaying the page title fine. One thing you can do is reverse the order of what gets displayed. Unless you;re marketing the blog title as more important, you can do this: <title><?php wp_title(); ?> <?php bloginfo('name'); ?> </title> Code (markup): That would put the page title first followed by the blog name. That would also resolve the empty title if the page that you;re looking at doesn't have any individual title like on the main home page. You should probably throw in a mark so something between the two function calls, just to make it more readable. Example: <title><?php wp_title(); ?> | <?php bloginfo('name'); ?> </title> Code (markup): Hope this helps, -drmike
Hai theapprauts Now almost done. i am happy with this code you gave tle><?php wp_title(); ?> <?php bloginfo('name'); ?> </title> Code (markup): last problem is how to remove this '»' character in post title? EDITED : iTS OK, I found the fix for that. <title><?php wp_title(''); ?> <?php bloginfo('name'); ?></title> Code (markup): Thank you so much for the gret support theapprauts
Not a problem. Just to clarify, here's the page on wp_title: http://codex.wordpress.org/Template_Tags/wp_title The first Parameter is the separator which is why with a blank space, you;re getting ride of it.