Is there a way to edit the CSS to change the look of the menu parent for the current page. For example if there is a menu item of About Us and you are on the about us page can the About Us menu item be highlighted?

Comments

noahlively’s picture

If you look at the HTML structure of the MuchoMenu output, the "a" tag for the parent menu item has a unique class. Something like "muchomenu-item-5".

Most Drupal themes put some kind of class in the "body" tag that you can use to determine which page you are on in CSS.

So... for example, you can do something like this.

body.page-about-us #muchomenu-1 a.muchomenu-item-5 {
   INSERT CUSTOM CSS HERE
}

If you need additional customization in your HTML output, you can override one of the muchomenu theme functions in your own theme. If you are not a programmer, this might be a bit tricky. So I would definitely try the first suggestion before you go down that road.

Let me know how it works for you.

Noah

apb1991’s picture

Status: Active » Closed (works as designed)

Thanks that is what I needed to know!