Skip to content

A simple extension of wp_nav_menu to support Foundation 5's offcanvas nav

Notifications You must be signed in to change notification settings

rickbutterfield/FoundationNavWalker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Foundation nav walker for WordPress

This is a simple extension of WordPress' built in wp_nav_menu to give support for Foundation 5's offscreen nav

Installation

Copy the full contents of the file into your functions.php file, or copy the file to your theme directory and call it from functions.php with require get_template_directory() . '/FoundationNavWalker.class.php';

Normal usage within a theme

<?php
	$defaults = array(
		'container'   => false,
		'menu_class'  => 'off-canvas-list',
		'walker'      => new FoundationNavWalker()
	);

	wp_nav_menu( $defaults );
?>

About

A simple extension of wp_nav_menu to support Foundation 5's offcanvas nav

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages