Download & Extend

Is there a way to only show the menu for a certain theme or for the admin theme?

Project:Administration menu
Version:6.x-3.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

I have an admin theme and I only want the admin menu to show on my admin theme. That is because our site theme is so outdated that it breaks the admin menu toolbar. The easiest solution is just to show it on the admin pages, I don't know the easiest way to make that happen.

Comments

#1

Check that User Management > Permissions > Admin_Menu Module > Access Admin Menu is enabled only for your admin users or those who use your admin theme.

#2

well but that doesn't solve the issue bc it still shows up on the non-admin pages where it is broken. i want it only showing for the admin theme.

#3

Version:6.x-3.0-alpha3» 6.x-3.x-dev
Category:support request» feature request

As far as I can tell, there is no way to do what you ask at this time, mainly because the admin menu isn't a block. Thus this would be a feature request.

#4

Status:active» closed (won't fix)

Administration menu's overall goal and purpose is to provide a consistent and always available administration interface for a site.

I don't see an explanation for an actual use-case in here, but this request in itself is counter-productive to admin_menu's mission.

#5

Looks like you can disable it for certain themes. See this excerpt from the readme:

Q: How can the administration menu be hidden on certain pages?

A: You can suppress it by simply calling the following function in PHP:

module_invoke('admin_menu', 'suppress');

However, this needs to happen as early as possible in the page request, so
placing it in the theming layer (resp. a page template file) is too late.
Ideally, the function is called in hook_init() in a custom module. If you do
not have a custom module, placing it into some conditional code at the top of
template.php may work out, too.

nobody click here