Is there a way to change the page title for the "checkout/#/user/register" page? Right now it is defaulting as "Home". I would like to change it to "Create User Account".

Comments

jonshot’s picture

Same problem here, but it was pretty easy to fix with a call to drupal_set_title('Create user account'); inside a hook_form_alter in a custom module.

J.Murphy’s picture

Thanks for the suggestion. Do you think I could use String Overrides module to accomplish the same result?

roball’s picture

Title: Change page title » Change title of user/* pages
Version: 7.x-1.x-dev » 7.x-2.x-dev
Issue summary: View changes
Status: Active » Fixed

You can also just add something like this to your theme's template.php:

// Change page title on 'user/register', 'user/login' and 'user/password' from the default "Home":
if (arg(0) == 'user') {
  if (arg(1) == 'register') {
    drupal_set_title('Create new account', PASS_THROUGH);
  }
  elseif (arg(1) == 'login') {
    drupal_set_title('Log in', PASS_THROUGH);
  }
  elseif (arg(1) == 'password') {
    drupal_set_title('Forgotten password', PASS_THROUGH);
  }
}

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.