We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Drupal Menus

Robert Granlund
on
Medium Priority
425 Views
Last Modified: 2012-05-11
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!
Comment
Watch Question

Commented:
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.

Author

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?

Commented:
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.
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Commented:
hope u managed to make it work
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.