I'm working on translating a site from HTML/CSS to Wordpress, and I've come across an issue. In the spirit of keeping the site fully customizable from the dashboard, I've been using Wordpress' default menu system for creating my navigation, but I can't get it to do what it would in hard coded HTML. I need to move the parent list item (parent's a element) below it's child ul as shown below:
<li id="generalinfo">
<ul>
<li><a href="#">About the Festival</a></li>
<li><a href="#">History</a></li>
<li><a href="#">Sponsors</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
<a class="cat" href="#">General Info</a>
</li>
But by default, Wordpress forces it to do this instead:
<li id="generalinfo">
<a class="cat" href="#">General Info</a>
<ul>
<li><a href="#">About the Festival</a></li>
<li><a href="#">History</a></li>
<li><a href="#">Sponsors</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</li>
It is vital for the design that the link come after the unordered list, as it will be a descending banner like this:
https://i.sstatic.net/zrcgJ.png
The graphic elements are background elements with hover states. This is what they would look like dropped down, the home button on the left is an example of the banner fully raised. This is why it's important to have the parent link element displayed at the end.
Ideas?
display_element()
.position: relative;
so you'd only have make the bannersposition: relative;
for it to work