我有以下导航菜单,我的问题是如何在Wordpress(代码方式)中执行此操作,因为每个导航项具有不同的类。此导航将放在front-page.php。
中代码:
<div id="nav">
<div class="grid_4_home hoverable">
<a href="index.html"><h3>Home <span class="lucida">»</span></h3></a>
</div>
<div class="grid_4 hoverable">
<a href="expertise.html"><h3>My Expertise <span class="lucida">»</span></h3></a>
</div>
<div class="grid_4_about hoverable">
<a href="about.html"><h3>About Us <span class="lucida">»</span></h3></a>
</div>
<div class="grid_4 hoverable">
<a href="testimonials.html"><h3>Testimonials <span class="lucida">»</span></h3></a>
</div>
<div class="grid_4 hoverable">
<a href="reports.html"><h3>Case Reports <span class="lucida">»</span></h3></a>
</div>
<div class="grid_4_last hoverable">
<a href="contact.html"><h3>Contact Us <span class="lucida">»</span></h3></a>
</div>
</div> <!-- end of nav -->
答案 0 :(得分:0)
将代码直接添加到主题文件夹中的front-page.php文件中。用php echo
或用?>
关闭php然后插入你的html,然后用<?php
重新打开php
然后编辑style.css并为其添加您可能需要的任何其他css代码..