Closed (fixed)
Project:
Corolla
Version:
7.x-1.21
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Jun 2011 at 01:38 UTC
Updated:
26 Jan 2015 at 09:22 UTC
Jump to comment: Most recent
How can I change the title of the User Menu to display the name of the user?
Comments
Comment #1
komal.savla commentedHi,
Add this code in template.php inside the
function corolla_preprocess_block(&$variables)This will change the title of the user menu block to the name of the user
Thanks,
Komal
Comment #2
glennnz commentedPerfect, thanks
Comment #3
cptlonestar commentedHi,
This really helped with getting the name to appear above my user menu when someone is logged in. However, when no one is logged in, the user menu (which also appears in my footer) doesn't have a title. Is anyone able to help me with the simple programming for adding a title such as "Members" when no one is logged in/anonymous user?
Any help would be greatly appreciated.
Comment #4
cptlonestar commentedComment #5
glennnz commented@Cptionestar
Try this:
Glenn
Comment #6
glennnz commentedChange 'Anonymous' to whatever you want the block title to be.