By whatistocome on
How do I add a title to the user navigation block (the block that includes "my account", "my blog", etc.)
Thanks,
Jason
How do I add a title to the user navigation block (the block that includes "my account", "my blog", etc.)
Thanks,
Jason
Comments
?
The Navigation block already has a title. Are you trying to change it?
For anonymous users, the title is "Navigation". For logged-in users, the title is the person's username.
If you want to change this, you'll have to change core (~line 654 in
user.module).Your other option is to disable the default navigation block (except for admin, of course), and build a custom navigation menu. This way is longer, but you don't have to modify any core files to do it.
- Corey
the plot thickens
burnt theme doesn't display the user's name above the menu i see now. i like the idea of creating a custom navigation menu. where is the code that builds the default nav block - a copy and paste job for the menu items i want will hopefully be straight forward.
- Jason
Not that straitforward
Setting up a custom menu eliminates the dynamic nature of it.
Since you mentioned that you use the "Burnt" theme, then your problem gets easier. Burnt purposely leaves out the title of the Navigation block. The code in question is lines 33-35 of
themes/burnt/template.php.Change it to whatever you need. Modifying themes is common. It's modifying Core files that you want to stay away from!
- Corey
slapping an else statement
slapping an else statement to have it print a customized title for the navigation block works great. thanks.
- Jason
Anyone have an example of an
Anyone have an example of an else statement for changing the title. Ideally, I need the navigation menu not to dynamically show the user's name when they are logged in. I'd prefer to keep this change in the template but am using a customized phptemplate template.
Thanks for any help-
Burnt Navigation Block title in Drupal 6
The template.php file at "themes/burnt/template.php" doesn't have lines 33-35 in Drupal 6. I simply want to turn on the navigation block title. Anyone able to instruct me please.