How to remove "Blog archive" from title in wordpress theme. Solution.

Публикувано / posted 2008-06-20 в категория / in category: Web development
  

wordpress-logo.jpgIf you ended up here you are probably wondering how to remove annoyng "Blog archive" text from your blog post titles.

There are good news and bad news.

The bad news is that if you have blog registered at wordpress (i.e. username.wordpress.com) I can't help you.

The good news is that if you have installed wordpress package on your server or some hosting space -- removing "Blog archive" is quite easy.

FTP (or whatever method you use to upload files) to your server and go to directory wp-content/themes. Here you will fine directories for available themes. Enter the directory of your theme (probably "default/"). Here you will find a bunch of files. Open header.php for editing.

Find the line that is enclosed by <title></title> tags. On default theme that is line 7.

It looks like:

<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>

All you have to do is to remove "» Blog Archive" (without quotes).

Save your file. That's it.


One Response to “How to remove "Blog archive" from title in wordpress theme. Solution.”

  1. Blog says:

    Very good article

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Внимание: Моля, въведете само ПЪРВИТЕ ТРИ цифри от картинката
Important: Please enter just the first three digits from the image