开发者

how to add different classes to primary links in drupal6?

开发者 https://www.devze.com 2023-02-28 01:17 出处:网络
I am making custom theme indrupal6. I want to assign different css classes todifferent menu. how can i d开发者_如何学JAVAo this. Please help.The easiest way would be to use the Menu Attributes module.

I am making custom theme in drupal6. I want to assign different css classes to different menu. how can i d开发者_如何学JAVAo this. Please help.


The easiest way would be to use the Menu Attributes module.

From the module's project page:

You should use this module when

  • You want to "nofollow" certain menu items to sculpt the flow of PageRank through your site
  • You want to give a menu item an ID so you can easily select it using jQuery
  • You want to add additional classes or styles to a menu item

The module currently allows you to set the following attributes for each menu item:

  • Id
  • Name
  • Target
  • Rel
  • Class Style
  • Accesskey
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号