2011-07-19 50 views
0

我有以下导航菜单,我的问题是我将如何在Wordpress中执行此操作(代码明智),因为每个导航项具有不同的类。这个导航将被放置在front-page.php中。我该如何做这个导航?

代码:

<div id="nav"> 
      <div class="grid_4_home hoverable"> 
       <a href="index.html"><h3>Home <span class="lucida">&raquo;</span></h3></a> 
      </div> 

      <div class="grid_4 hoverable"> 
       <a href="expertise.html"><h3>My Expertise <span class="lucida">&raquo;</span></h3></a> 
      </div> 

      <div class="grid_4_about hoverable"> 
       <a href="about.html"><h3>About Us <span class="lucida">&raquo;</span></h3></a> 
      </div> 

      <div class="grid_4 hoverable"> 
       <a href="testimonials.html"><h3>Testimonials <span class="lucida">&raquo;</span></h3></a> 
      </div> 

      <div class="grid_4 hoverable"> 
       <a href="reports.html"><h3>Case Reports <span class="lucida">&raquo;</span></h3></a> 
      </div> 

      <div class="grid_4_last hoverable"> 
       <a href="contact.html"><h3>Contact Us <span class="lucida">&raquo;</span></h3></a> 
      </div> 
     </div> <!-- end of nav --> 
+0

没有正在阻止你复制和粘贴。 –

回答

0

直接添加代码到位于主题目录前page.php文件的文件。做到这一点无论是用PHP echo或关闭PHP与?>然后插入你的HTML,然后重新打开PHP与<?php

然后编辑style.css文件,并把它你可能需要为你的类附加的CSS代码..