Giter Site home page Giter Site logo

network-nav-menus's Introduction

Network Nav Menus

Contributors: ivycat, sewmyheadon, bradyvercher, rdall
Tags: multisite, nav menus, navigation, network
Requires at least: 3.0.1
Tested up to: 4.8
Stable tag: 1.0.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Assign navigation menus from the main site in a WordPress multisite network to theme locations in sub-sites.

Description

Network Nav Menus allows you to designate a menu from the main site in a WordPress multisite network as the networked menu and it will appear as an available menu in your sub-sites.

Installation

This plugin works off of the register_nav_menus function. For more on that function info see the Theme Developer Handbook register nav menus page on the developer handbook"

You set up your menu array in your function file of the theme(s) you have in your themes folder the same way you would on for a single site install For example: register_nav_menus( array( 'global' => 'Global Navigation Menu' )

Then you would call that menu on each theme file you want.

wp_nav_menu( array( 'theme_location' => 'header-menu' )

Once you have created the the menu you want to use for your Network Nav Menu, you can then designate it as the menu you want for the Network Nav Menu from the list of available menus in the primary site.

You can then go to any sub-site under Appearance > Menus and there will be another menu option called "Network Menus."

  1. Upload Network-Nav-Menus to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

Frequently Asked Questions

Q: Do I still need to configure my site to call this menu in each sub-site?

A: Yes

Q: Can I choose which site my Network Nav Menu comes from?

A: No, the Network Nav Menu can only be set in the primary site.

Q: Is there a site that is currently using this plugin?

A: Yes this plugin was initially built for Art Wolfe and as of April / 2015 the only site where you can see it implemented.

Q: How can I contribute, report bugs, or suggest features?

A: Visit the Network Nav Menu GitHub repository.

Changelog

1.0.1

  • Documentation updates
  • Minor code cleanup

1.0

  • Initial Commit

Upgrade Notice

1.0.1

Better documentation.

network-nav-menus's People

Contributors

robertdall avatar sewmyheadon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.