开发者

wordpress wp_nav_menu

Why I can't add an id or a class in the output of wp_nav_menu?

here is my code:

wp_nav_menu( array( 'container_id' => 'navigation', 'container_class' => 'menu' ) );
开发者_JS百科

nothing happens on this.

I already added it to registered items in functions.php


Are you using the WP Super Cache plugin? You will need to turn it off while you are changing/developing things. Also, some themes don't always support menus in the way you might expect.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜