Title: Changing  tag
Last modified: August 24, 2016

---

# Changing tag

 *  Resolved [Number_6](https://wordpress.org/support/users/number_6/)
 * (@number_6)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/php-question-changing-tag/)
 * Hi,
    I’m using a theme called Floki and in the header it has: `<title><?php if(
   is_home () ) bloginfo('name'); else wp_title( '|', true, 'right'); ?></title>`
 * On the homepage this outputs: “Eclectic Vibrations Radio” (the blog name)
    An
   example of another page: “Dan Gilroy | People |”
 * After the separator I’d imagine the name of the blog should ordinarily follow.
   Think it’s something to do with my installation (which is 1.5 years old) being
   messed up.
 * How could I manually insert the name within that “else”?
 * Cheers

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Chris Huff](https://wordpress.org/support/users/brochris/)
 * (@brochris)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/php-question-changing-tag/#post-6165229)
 * Not sure why that’s not working for you. I just tested it and it worked just 
   the way you wanted for me. In fact, it actually output exactly the same this:
 * `<title><?php wp_title('|', true, 'right'); ?></title>`
 * Which was what my theme had before I tested yours. But if that’s not working 
   for you, either, try this:
 *     ```
       <title><?php if (is_home () ) {bloginfo('name'); }
       else { wp_title( '|', true, 'right'); bloginfo('name');} ?></title>
       ```
   
 *  Thread Starter [Number_6](https://wordpress.org/support/users/number_6/)
 * (@number_6)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/php-question-changing-tag/#post-6165230)
 * Thanks! That worked. No idea why it didn’t work when I tried adding bloginfo(‘
   name’) to the end, myself. It originally output the blog title twice on homepage.

Viewing 2 replies - 1 through 2 (of 2 total)

 The topic ‘Changing tag’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 2 participants
 * Last reply from: [Number_6](https://wordpress.org/support/users/number_6/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/php-question-changing-tag/#post-6165230)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
