0
我想在我的頁腳導航來創建此導航結構:沃克類在WordPress
<div class="footer container">
<div class="footer-nav-containers">
<ul>
<li></li>
<li></li>
<li></li>
</ul>
</div>
<div class="footer-nav-containers">
<ul>
<li></li>
<li></li>
<li></li>
</ul>
</div>
<div class="footer-nav-containers">
<ul>
<li></li>
<li></li>
<li></li>
</ul>
</div>
</div>
我是很新,WordPress和很感激我將如何設置這爲步行者任何幫助類。謝謝!
這裏有一個很好的解釋:http://code.tutsplus.com/tutorials/understanding-the-walker-class--wp-25401。你想要做什麼?你想在你的頁腳重複你的主/頭導航嗎? –
感謝@NathanielFlick基本上我試圖將硬編碼轉換爲WP主題。在頁腳中,我想將每個ul包裝在一個名爲「footer-nav-containers」的div中。從我讀過的內容來看,使用助行類將是我的最佳選擇,但我不確定如何獲得這種結構。 – wbhood
嗨,你可以做沃克,但我通常傾向於創建一個外觀/菜單(你可以打電話給你的頁腳或者只需在頁腳再次調用主導航,如果你想讓它們成爲相同的項目)。這裏有一些很好的信息:https://premium.wpmudev.org/blog/add-menus-to-wordpress/ –