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

scott m. sanders’s picture

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.

drupalninja99’s picture

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.

vm’s picture

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

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.

sun’s picture

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.

ntrepid8’s picture

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.