How to insert date in topNav

wp_nav_menu has a $container parameter that can be used to set the type of container (div or nav) or to disable it. You could set the parameter to false and hardcode the wrapper div whilst including a date inside of it: <!– BEGIN HEADER-TOP –> <div class=”navigation-wrap”> <?php wp_nav_menu( array( ‘theme_location’ => ‘topNav’, ‘depth’ => … Read more

Specifying Class style for Menu

Looking at your rendered output: <div class=”menu sf-menu”><ul><li class=”page_item page-item-2 current_page_item”>… It appears that ‘sf-menu’ got appended as a class to the menu container, rather than to the menu itself. The wp_nav_menu() function has two separate parameters: menu_class: CSS class applied to the menu list <ul> menu tag container_class: CSS class applied to the element … Read more

custom walker to add iconfont to wp_nav_menu

ok, I figured it out myself. instead of using the CSS class (as I cannot figure out how to filter it), I decided to use the description instead. under the lines with $attributes I have added this line: $description = ! empty( $item->description ) ? esc_attr( $item->description ) : ”; And then I added that … Read more