“dropdown menu”可以使网站更具伸缩性、可观性,效果请看本网站,安装方法如下:
- Download the “dropdown-menu-plugin” from “Simon Benjamins”.
- Replace or comment out the wordpress K2 navigation. You can find the navigation of wordpress k2 in the “header.php”:
- Delete:
<?php wp_list_pages(’sort_column=menu_order&depth=1&title_li=’); ?>
<?php wp_register(‘<li class=”admintab”>’,‘</li>’); ?>
- Then put in under the closing DIV:
<?php gdd_dropdown_menu(”); ?>
- For example,like that:
</ul></div>
<!– dropdownmenu –>
<?php gdd_dropdown_menu(”); ?>
<hr />
将下载的插件包解压到“plugins”文件夹里,然后到系统后台“插件”里激活,然后在“管理”找到“dropdown menu”里配置即可。如果要实现dropdown的背景条更宽的话,需要修改CSS,其实过程很简单,先在<li>里添加一个“id=”LargeMenu””,再在插件文件夹里的“dropdown_style.css”里添加
#dropdownmenu #LargeMenu {
width: 360px; /*you can change the value of width */
}
即可,现在看看效果吧!
查看更多:http://www.webdesign-professional.eu/how-to-wordpress-k2-dropdown-menu.html










