开发者

wordpress wp_nav_menu

开发者 https://www.devze.com 2023-03-17 08:47 出处:网络
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\' ) );

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

精彩评论

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