neilgee
2/22/2016 - 3:56 AM

Add Manual SlickNav Menu to Page

Add Manual SlickNav Menu to Page

<?php
//add into functions.php


//Responsive Nav
//Swap in your menu class or id and which container it is going to be in 'prependTo value'
function themeprefix_responsive_menujs() {
	echo 	"<script>
			jQuery(function($) {
			$('#menu-week-brand-menu').slicknav({
					label:'MEMBER CONTENT',
					prependTo:'.menu-week-brand-menu-container',
				});
			});
			</script>";
}//swap to wp_head hook if not using genesis
add_action ('genesis_after','themeprefix_responsive_menujs');