drupal_set_title not changing the navigation bar title I have changed the title of a path with the drupal_set_title() function from hook_page_alter from a custom module. It works but the title in the navigation bar is still the previous one.

How can I change it too?
Sounds like you're setting the title too late in the theme building process for this to work, possibly using at the node layer which only affects the node title not the page title. What you want to make sure to do is use a preprocess_page function to set the title so this is in the header as well:



function mytheme_preprocess_page(&amp;$vars){
    if (isset($vars['node'])) {
        drupal_set_title('YOUR TITLE');
    }
}


Alternatively, you can install the Page Title which gives you granular control over all of your page titles and is often recommended for SEO.