Recently I needed to develop a diagonal menu, which at first glimpse seemed completely do-able. Once I dug deeper into it, I realized that it was actually quite difficult to build.
The Requirements
SEO friendly
Work with a WordPress CMS backend to be output dynamically using the wp_list_pages() function
Have hover and current navigation states
Match the designer exactly
The XHTML
<ul id="subnav" class="clearfix"> <li class="page_item page-item-259"><a href="https://www.cogenra.com/products-services/hppa/" title="HPPA">HPPA</a></li> <li class="page_item page-item-261"><a href="https://www.cogenra.com/products-services/system-purchase/" title="System Purchase">System Purchase</a></li> <li class="page_item page-item-75"><a href="https://www.cogenra.com/products-services/installation/" title="Installation">Installation</a></li> <li class="page_item page-item-81 current_page_item"><a href="https://www.cogenra.com/products-services/incentives/" title="Incentives">Incentives</a></li> </ul>
Enter fullscreen…