【发布时间】:2011-03-28 01:59:12
【问题描述】:
我必须创建一个自定义的 wordpress 主题。 我仍然不知道它应该是什么样子,所以查看了 20 个主题文件以找出我可以自定义的内容。 所以我在header.php文件中搜索了菜单构建功能,发现了这个
<?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
但我不知道这个函数是做什么的...哪里写了菜单是如何使用<ul>、<li>等html标签创建的...
我不想编辑html代码!
问候, 彼得
【问题讨论】: