Shortcode : [extra_menu] – X-Plus
Extra Menus
[ extra_menu menu_name='Menu Name' menu_style='menu-options' menu_type='accordion' class='your-class']
You can easily add extra menus to almost any location on your site by using either the Weaver Xtreme Plus Extra Menu widget, or the [extra_manu] shortcode. Much of the description of the shortcode parameters apply equally to the widget.
The [ extra_menu]
shortcode allows you to display a menu you’ve defined in the Appearance→Menus panel almost any place in your site: in a sidebar text widget, on a post or page, or in one of the HTML Insertion areas found on the Weaver Admin→Advanced Options tab. Simply insert the shortcode with at least a menu name wherever you want the menu to appear.
- menu_name= – Which custom menu to display as defined in the Appearance : Menus admin page.
- menu_style= – The ‘menu_style’ parameter is used to specify how the menu will look. There are five different styles that can be applied to any of the menu types supported by the Extra Menu shortcode and widget. The styling is based on one of the four standard menu bar styling options, or adding no styling. Any of the Styling Options can be applied to any type of menu, but the Horizontal menu only uses a subset of the options available for a Standard or Vertical Accordion menu styling. Some more details about each Menu Option area:
- extra – The Extra Menu menu styling option set is provided with Weaver Xtreme Plus, and is intended to provide all styling options for your extra menus. When ‘extra’ is specified, the options defined in the Extra Menu block will be applied to the extra menu.
- primary, secondary – You can also specify primary or secondary to have those styling option applied to an extra menu. This will allow you to match the main menu styling.
- header_mini – Specifying header_mini will use the minimal color, background, font, and hover colors specified for the Header Mini-Menu. This option is most useful for simple horizonta or verticall menus. Important note: this style is compatible only with the horizontal or simple vertical menu type. It will generate an error message instead of a menu if not used properly.
- none – If you specify none, then no extra styling options are applied to the extra menu. It will use the styling from the default style-weaverx.css stylesheet.
- menu_type= – This specifies the type of menu to display. There are 4 types of menus supported: a vertical accordion menu, the standard horizontal menu bar, and simple flat horizontal or vertical menus.
accordion
– Displays a Vertical Accordion menu in a width determined by the enclosing container – usually the sidebar area. In fact, the vertical accordion menu is the same menu displayed for the mobile device view, but without the open/close icon – it is always open to the top level menu items, and will open submenus using an accordion effect. It will use the same colors as you’ve defined for your main menu bars. It is easiest to use the Weaver Xtreme Plus Extra Menu widget to add a menu to a widget area. To add a menu to an HTML insertion box, or to a normal content area, simply add[ extra_menu menu_name='mymenu' menu_style='primary' menu_type='accordion']
to the content area. Using a style of ‘primary’ means the menu will match the style of your primary menu.vertical
– Displays a very simple vertical menu. This is a simple vertical list with separate menu items separated by horizontal lines, and submenu levels are indented. The styling is limited: the colors are styled using only the top-level text and hover text and background colors of the specified menu_style, and current page text styling (no bg).horizontal
– Displays a very simple horizontal one-level menu. The links are styled using the standard link colors of the specified menu_style. This style is useful for placing a simple link menu right below your main menu, for example.standard
– Displays a standard horizontal drop-down menu, just like the primary or secondary menu. When styled using primary, secondary, or extra, a standard extra menu bar will display as a horizontal menu on the desktop view, and have the standard mobile menu display for mobile devices.
- class= – If you specify a class, the class will be added to the container that wraps the menu. You can define the style using the Custom CSS option.
Weaver Xtreme Plus Extra Menu Widget
This widget will display an extra menu in the widget. The [ extra_menu] parameters described above are included as drop-down selection boxes in the widget option box on the Widgets admin page.