我有邊欄,當我向它添加組件時,標題被添加到ul的li項中,使得它看起來很醜。我如何克服這一點。不幸的是,我對wordpress和php都知之甚少。爲什麼我的h3被添加到wordpress的li標籤中?
這裏是我如何得到它的螢火:
<li class="widget widget_categories" id="categories-8"><h2 class="widgettitle">Categories</h2>
<ul>
<li class="cat-item cat-item-1"><a title="View all posts filed under Uncategorized" href="http://localhost/wordpress/wordpress/?cat=1">Uncategorized</a>
</li>
</ul>
</li>
這是我從一些靜態的html UL李件側邊欄分開:
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar()) : else : ?>
<ul class="ul-cat">
<?php wp_list_categories('show_count=1&title_li='); ?>
<?php wp_get_archives('type=monthly'); ?>
</ul>
<?php endif; ?>
你想用你的h3標籤做什麼,它是由function.php裏的WordPress函數'register_sidebar'自動生成的? – 2012-04-09 20:36:04