Tried:
block--system--user-menu.tpl.php
block--system--user--menu.tpl.php

Not working. Using Drupal 7 Apache+PHP+MySQL and yes, I did clear my cache.

What I mean is that I cannot theme that user menu for custom styles. For example block--system--navigation.tpl.php works, node--article.tpl.php works and etc.. Everything works, but not User menu (yes, I do add it to my theme folder or my theme templates folder).

The only current solution is just to create a custom menu and use it as 'User menu'. But still, I think this should be fixed.

Or maybe I am missing something? This is a bug or some magic powers.

Comments

pingers’s picture

Version: 7.0 » 7.x-dev
Status: Active » Needs review
StatusFileSize
new849 bytes

This appears to be because block module doesn't correctly modify the delta when creating template candidates.

I.e. Any template candidate with a dash (-) is affected by this bug. There are two templates in core which suffer this issue.
* user-menu
* powered-by

In both cases, the template candidate was added to $hooks['block__system__user_menu'] or $hooks['block__system__powered_by'],
yet the template candidate from template_preprocess_block() is looking for 'block__system__user-menu' or 'block__system__powered-by'.

Please see the attached patch.

pingers’s picture

StatusFileSize
new849 bytes

Trying again for test bot.

larowlan’s picture

Status: Needs review » Closed (duplicate)
pingers’s picture

Thanks larowlan. Glad my solution was the same :D