Title: SEO Title Coding
Last modified: August 20, 2016

---

# SEO Title Coding

 *  [LinGreg](https://wordpress.org/support/users/lingreg/)
 * (@lingreg)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/seo-title-coding/)
 * I have installed Yoast SEO and am trying to set up the Titles section correctly
   by inserting <title><?php wp_title(”); ?></title> rather than forcing the rewrite
   which I understand slows the site down.(As an aside is that true?)
 * My problem is I cant see where in the Header.php I need to put the code. My website
   is [http://www.bowentherapysussex.com](http://www.bowentherapysussex.com), I 
   am using the Weaver theme.
 * It would be really helpful if anyone could show me where in the header code I
   should insert the above. Many thanks

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

 *  [Fire Truck](https://wordpress.org/support/users/zmv/)
 * (@zmv)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/seo-title-coding/#post-2647620)
 * Look in the file `hdr-title.php`
 *  Thread Starter [LinGreg](https://wordpress.org/support/users/lingreg/)
 * (@lingreg)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/seo-title-coding/#post-2647635)
 * Ok thanks for getting back to me zmv – this is the code in that file:
 * _[[code moderated - please use the pastebin for **any **code over the forum limit of 10 lines]](http://codex.wordpress.org/Forum_Welcome#Posting_Code)_
 * Where would I paste the <title><?php wp_title(''); ?></title> code in this?
 * BTW- I am a complete novice as if you hadn't guessed!
 *  [Fire Truck](https://wordpress.org/support/users/zmv/)
 * (@zmv)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/seo-title-coding/#post-2647639)
 * Apparently you have to replace everything between `<title>` and `</title>` with`
   <?php wp_title(''); ?>`
 *  [Peter Wooster](https://wordpress.org/support/users/pkwooster/)
 * (@pkwooster)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/seo-title-coding/#post-2647643)
 * It looks like your theme has an option to hide its meta tags. If you set that
   option it will use the wp_title function. So you don’t need to add any code, 
   just set that option.
 * /Peter
 *  Thread Starter [LinGreg](https://wordpress.org/support/users/lingreg/)
 * (@lingreg)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/seo-title-coding/#post-2647671)
 * Hi Peter
    I’ve gone to the option I think you’re talking about and ticked the
   box for using SEO instead of the weaver metatags. The code in the hdr.php now
   shows as follows:
 * _[[code moderated - please use the pastebin for **any **code over the forum limit of 10 lines]](http://codex.wordpress.org/Forum_Welcome#Posting_Code)_
 * Does that look right?
 * Thank you both so much for your help .
 *  Thread Starter [LinGreg](https://wordpress.org/support/users/lingreg/)
 * (@lingreg)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/seo-title-coding/#post-2647693)
 * Sorry moderator – didn’t know about paste bin – have pasted code in under LinGreg–
   its public and at [http://pastebin.com/ShZfvmLw](http://pastebin.com/ShZfvmLw)
   
   Hopefully you can see the new hdr.php code – is that now ok?
 *  [Peter Wooster](https://wordpress.org/support/users/pkwooster/)
 * (@pkwooster)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/seo-title-coding/#post-2647728)
 * The code doesn’t change when you set that option, what charges is the function
   that gets called. Try using some of the Yoast SEO settings and see if the meta
   fields appear in the HTML source.
    /Peter

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

The topic ‘SEO Title Coding’ is closed to new replies.

## Tags

 * [Coding](https://wordpress.org/support/topic-tag/coding/)
 * [Yoast](https://wordpress.org/support/topic-tag/yoast/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [Peter Wooster](https://wordpress.org/support/users/pkwooster/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/seo-title-coding/#post-2647728)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
