You are here

27 January 2013

Changing page titles in your theme. There is also hook_page_title_alter hook. If for some reason you still want to do it your theme, then this is how.

Source code viewer
  1. function THEME_preprocess_page(&$vars, $hook) {
  2. $vars['title'] = 'My page title!';
  3. $vars['head_title'] = 'My page title!';
  4. }
Programming Language: PHP