wp_page_menu forward compatibility with wp_nav_menu

You’ve styled your wordpress menu’s like the following:

#site-navigation li.menu-item-has-children {
    position: relative;
}

#site-navigation ul.sub-menu {
    position: absolute;
    min-width: 100%;
    top: 100%;
    left: 0;
}
/* etcetera etcetera */

However, when you’ve not set a menu for your menu locations, dropdowns no longer work, current menu items are no longer styled, etcetera, etcetera. How do we fix it?

Continue reading “wp_page_menu forward compatibility with wp_nav_menu” »