开发者

why is my primarylinks menu is adding classes only for some items?

I have 2 menus defined, and I want to style them... As I'm continuing a previous made drupal there is a menu that assigns classes to each entry (haven't discovered how it does that), it's outputs something like this:

<ul class="menu">
<li class="leaf first"><a title="" class="flores" href="/huerto-urbano/flores">Flores</a></li>
<li class="leaf"><a title="" class="plantas" href="/huerto-urbano/plantas">Plantas</a></li>
<li class="leaf last"><a title="" class="verduras" href="/huerto-urbano/verduras">Verduras</a></li>
</ul>

notice the class="flores"? now I've created another menu similar to that but the class="XXXX" 开发者_C百科disapeares..why?

<ul class="menu">
 <li class="leaf first"><a title="" href="/ca/huerto-urbano/flores">Flors</a></li>
 <li class="leaf"><a title="" href="/ca/huerto-urbano/plantas">Plantes</a></li>
 <li class="leaf last"><a title="" href="/ca/huerto-urbano/verduras">Verdures</a></li>
</ul>


I would start by searching the template.php located in the theme directory for themed menu item functions. If the theme name is 'plants', for example, then search for the functions plants_menu_item or plants_menu_item_link. The logic to add the class attribute may be in there.


The second menu is for a different language. What you should do is check if the problem is because of the translate module. Multilanguage set up looks to be the culprit.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜