开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜