Screenshot from 2016-03-11 12:48:57

wp_nav_menu() function is used by themes for displaying WordPress menus in theme header, footer, sidebar. Sometimes you need to customize nav menu with your own html tags, styles and classes. The normal way to do it is WordPress Walker, which we talked about in another post. Although this is the only perfect way to solve this task, this way is a little long and difficult. Sometimes we may need quicker solution for little customization in nav menu. In such cases we can use php output buffering. Here is sample: Continue reading →