Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is there anyway I can set what text should appear in the tags before get_header() is called in my .php files that are inside my theme's directory?

share|improve this question
1  
get_header() calss header.php which holds the <title> tag in most theme's. –  Bainternet Feb 7 '11 at 20:04

2 Answers 2

up vote 2 down vote accepted

It depends on your theme how exactly <title> is generated. At least some of it should be generated by wp_title() function, output of which you can filter at wp_title hook.

share|improve this answer

You can add a filter for the get_header hook and then you can return custom code for the header.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.