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
Comment #1
pingers commentedThis 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.
Comment #2
pingers commentedTrying again for test bot.
Comment #3
dcrocks commentedRelated:
http://drupal.org/node/1021270
http://drupal.org/node/1076132
http://drupal.org/node/992376
Comment #4
larowlanDuplicate of #1021270: Blocks for custom menus are impossible to theme
Comment #5
pingers commentedThanks larowlan. Glad my solution was the same :D