Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am trying to change the title on the User Account page (mysite.com/user).
I tried this, but it changes the title on all pages:
function mytheme_alpha_preprocess_page(&$vars) {
// Hide the node title on the front page
if($vars['user']) {
$vars['title'] = 'My New Title';
}
}
Thanks in advance for any help! I am but a lowly designer and I really appreciate any help I can get from the awesome Drupal community!
Comments
Comment #1
Rosaria Constantin CreditAttribution: Rosaria Constantin commentedHi,
Try this, it works for me :
Comment #2
kaido.toomingas CreditAttribution: kaido.toomingas commented(y)