开发者

Any one else having trouble with the WordPress TwentyTen theme is not adding current-menu-item to all of my pages in the menu?

开发者 https://www.devze.com 2023-01-07 13:54 出处:网络
Ok, so I\'m using the new TwentyTen theme and getting familiar with it. From what I understand you create a custom menu and picks it\'s spot, which was done with no problem. The menu consists of all o

Ok, so I'm using the new TwentyTen theme and getting familiar with it. From what I understand you create a custom menu and picks it's spot, which was done with no problem. The menu consists of all of my top level pages, but only one page gets the current-menu-item class added to it's list item when you're on that one page. The rest of the pages do not get assigned th开发者_StackOverflow中文版is class.

Strange isn't it? All of the pages are top level, no children, and I've viewed the source code rendered on all of them and no current-menu-item.

Is any one else having this problem? Just an FYI, this is a local install on MAMP.


Figured it out. If you're adding your own static pages to a new menu than you need to add them using the "Pages" box and not the "Custom Link" box. Props to @jakemgold for the ah-ha moment!

0

精彩评论

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