• In header.php in my theme the title looks like this:
    <title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' |'; } ?> <?php bloginfo('name'); ?></title>

    Now, I want to use another title if I have a $_GET parameter in the url that is called album. But if I just write
    <title>dsalfjsdf</title> the title is’nt changing.

    What can I do to be able to alter the title tag?

    Cheers…

Viewing 2 replies - 1 through 2 (of 2 total)
  • Normally you would do this within your wordpress admin, what your doing is just the harder way.
    I have a feeling that you fixed this by now, by just clearing your cache.

    Thread Starter patrikwe

    (@patrikwe)

    I found that it is my plugin “All in one seo” that is overwrite the titles I am writing in header.php.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Alter the title in header.php’ is closed to new replies.