Git Product home page Git Product logo

be-mega-menu's Introduction

BE Mega Menu

Contributors: billerickson
Requires at least: 4.1
Tested up to: 4.6.1
Stable tag: 1.0.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

BE Mega Menu lets you use a visual editor for managing mega menu dropdowns.

Go to Appearance > Menus to create your top level menu items. Go to Appearance > Mega Menus to manage the mega menu dropdowns. Create a Mega Menu with the same title as the top level menu item under which it should appear.

This plugin does not add any CSS, so you'll need to customize the styling in your theme. Here is sample CSS.

Screenshots

Backend

backend screenshot

Frontend

frontend screenshot

Customization

The mega menu applies to the 'header' menu theme location. You can change this using the be_mega_menu_location filter. Example:

/**
 * Mega Menu on Primary Menu 
 *
 */
function ea_primary_mega_menu( $theme_location ) {
	return 'primary';
}
add_filter( 'be_mega_menu_location', 'ea_primary_mega_menu' );

The opening markup on mega menus is <div class="mega-menu"><div class="wrap">. This can be customized using the be_mega_menu_opening_markup filter.

The mega menu content can be customized using the ea_the_content filter. See this example to duplicate the filters on the_content

The closing markup on mega menus is </div></div>. This can be customized using the be_mega_menu_closing_markup filter.

You can customize the post type arguments used to create the Mega Menu post type with the be_mega_menu_post_type_args filter.

be-mega-menu's People

Contributors

billerickson avatar

Watchers

 avatar  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.