How to hide main menu in admin panel [Drupal-7]

Hi Drupal Experts,

we have a drupal theme that shows the main menu even though we logged in as admin .Its possible to hide that

Thanks in Advance Experts.....
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hagay MandelCommented:
What do you mean by "main menu"?
karthik80cAuthor Commented:
means main navigation
Hagay MandelCommented:
What menu (if any) do you expect to see once your'e logged in?
What is the theme that your'e using?
You can do this with editing your page.tpl.php or Template file where the main menu has been defined.

Try adding the condition as below

global $user;
  // Check to see if $user has the administrator role.
  if (!in_array('administrator', array_values($user->roles))) {
  // code for menu menu

Open in new window

Shahzad Fateh AliFounder and CEOCommented:

Go to Structure > Menus and edit main menu. Un-tick where it says "Include this menu in the "the menu selected by the page" menu available to menu blocks"

I hope this will resolve the issue.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.