Title: Changing Title Element within header.php
Last modified: August 31, 2016

---

# Changing Title Element within header.php

 *  [CCM1123](https://wordpress.org/support/users/ccm1123/)
 * (@ccm1123)
 * [10 years ago](https://wordpress.org/support/topic/changing-title-element-within-headerphp/)
 * Hi all, I would like to change my Title Tag/HTML Title Element within my header.
   php file. Here’s the title section in my theme’s header.php:
 * ‘<title>
    <?php wp_title( ‘|’, true, ‘right’ ); ?> </title>’
 * Would it work to input this code to change the title element?
 * ‘<title>
    <?php wp_title( ‘|’, true, ‘right’ ); ?> <?php if(wp_title( ‘|’, true,‘
   right’ ) { echo ‘ :’; } ?> I want this text to be my Title Element </title>’
 * Thanks for your help.

The topic ‘Changing Title Element within header.php’ is closed to new replies.

## Tags

 * [title tag](https://wordpress.org/support/topic-tag/title-tag/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [CCM1123](https://wordpress.org/support/users/ccm1123/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/changing-title-element-within-headerphp/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
