• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 407
  • Last Modified:

Drupal Menus

I'm building a site using Drupal.  I have a main navigation and a custom navigation.  My client wants the Custom navigation menu choice that is active to be another color.  Is there a Drupal Plugin or do I need to write a simple php script?  If it is a php script, can you give me an example of where to start?

Thank you in advance!
0
rgranlund
Asked:
rgranlund
  • 2
  • 2
1 Solution
 
bill30Commented:
To change a color of a menu you will need to do some CSS editing.

Find your CSS file for your theme and add

#customnavigationtitle a:active {
background color: #FFFFFF
}

Where FFFFFF is the new hexadecimal color code.

Let me know if you need further clarification.
0
 
rgranlundAuthor Commented:
bill30 thank you for your answer.  I did not explain it far enough though.  There are parent pages and sub-pages.  When a user is on a sub-page they want the Parent page to be active.  

How is that accomplished?
0
 
bill30Commented:
You could add some jquery to the site with some basic if/then statements.  If HTML page = ( page 1 or page 2) then CSS menuitem#1 = class active.

That is not proper coding whatsoever. but you get the idea.
0
 
lordrtCommented:
You can try use the current_page_parent for this, something like:

#menus li.current_page_parent a {
      **Whatever you want the highlighted parent to look like**
}
0
 
lordrtCommented:
hope u managed to make it work
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now