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
September 20, 2013 @ 00:20:32 | Current Revision | ||
---|---|---|---|
Content | |||
Unchanged: I thought it beneficial to note <a href="http:// wordpress.stackexchange.com/ questions/101021/ using-flexnav- with-wordpress" target="_blank">this</a> support page on integrating the great Flex Nav script with WordPress. | Unchanged: I thought it beneficial to note <a href="http:// wordpress.stackexchange.com/ questions/101021/ using-flexnav- with-wordpress" target="_blank">this</a> support page on integrating the great Flex Nav script with WordPress. | ||
Added: You don't need a custom walker function. You can alter wp_nav_menu like this: | |||
Added: [php] | |||
Added: <pre>< code>wp_nav_menu( array( | |||
Added: 'theme_location' => 'primary', | |||
Added: 'menu_class' => 'flexnav', //Adding the class for FlexNav | |||
Added: 'items_wrap' => '<ul data-breakpoint= "800" id="%1$s" >%3$s</ul>', // Adding data-breakpoint for FlexNav | |||
Added: ));</code> </pre> | |||
Added: [/php] | |||
Added: and proper script init should be: | |||
Added: [php] | |||
Added: <pre>< code>jQuery( document).ready( function($){ | |||
Added: $(".flexnav").flexNav({ | |||
Added: }); | |||
Added: });</code> </pre> | |||
Added: [/php] |
Note: Spaces may be added to comparison text to allow better line wrapping.
No comments yet.