是的,您可以使用css轻松控制。完成guide about wp nav menu on wordpress codex. 我的快速解决方案:
功能。php
add_theme_support(\'menus\'); // Menus Support
register_nav_menus(array(\'main_menu\' =>\'Main Menu\')); // Main Menu of Website
标题。php
<nav id="menu">
<?php wp_nav_menu(array(\'theme_location\'=>\'main_menu\')); ?>
<div class="clear"></div>
</nav>
样式。css
/* Clearfix */
.clear {clear:both}
/* First Level */
nav#menu ul li {float:left; position:relative; text-transform:uppercase; list-style:none}
nav#menu ul li a {display:block; background:#152635; color:#fff; padding:5px 15px; font-size:14px;}
/* Second Level */
nav#menu ul li ul {display:none;}
nav#menu ul li ul li a {width:160px;}
nav#menu ul li:hover ul {display:block; position:absolute; top:26px;}
/* Third Level */
nav#menu ul li ul li ul li {list-style:inside square}
nav#menu ul li ul li ul li a {font-size:11px; color:#ddd}
显然,您需要根据自己的兴趣编辑CSS。享受