You are viewing an old revision of this post, from September 20, 2013 @ 00:21:32. See below for differences between this version and the current revision.

Using FlexNav with WordPress

I thought it beneficial to note this support page on integrating the great Flex Nav script with WordPress. You don't need a custom walker function. You can alter wp_nav_menu like this: [php] <pre><code>wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'flexnav', //Adding the class for FlexNav 'items_wrap' => '<ul data-breakpoint="800" id="%1$s">%3$s</ul>', // Adding data-breakpoint for FlexNav ));</code></pre> [/php] and proper script init should be: [php] <pre><code>jQuery(document).ready(function($){ $(".flexnav").flexNav({ }); });</code></pre> [/php]

Revisions

  • September 20, 2013 @ 00:21:32 [Current Revision] by PeterLugg
  • September 20, 2013 @ 00:21:32 by PeterLugg
  • September 20, 2013 @ 00:20:32 by PeterLugg

Revision Differences

There are no differences between the September 20, 2013 @ 00:21:32 revision and the current revision. (Maybe only post meta information was changed.)

Tags: , ,

No comments yet.

Leave a Reply