1

I read what reported in How do I change html structure of menu (primary links for example) to my own? but the accepted answer for that question is for Drupal 6.

How do I create a function that adds a CSS class or ID to a single "li" and "sub li"?

2

2 Answers 2

2

It's useful to refer to the API documentation when you have an idea of what to do in version 'X' of Drupal and you want to translate the method to work in version 'Y'.

In this instance, the following API page will prove useful:

http://api.drupal.org/api/drupal/includes--theme.inc/function/theme_links/7

0
0

I found the solution here to change the primary menu links in Drupal 7

http://www.webmediahutch.com/customizing-primary-menu-links-drupal-7

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.