Menu Locations

The Longview theme supports two menu locations (header and footer). These are registered in the actions.php file:

function thmfdn_menus() {
			'header_menu' => __( 'Header Menu' ),
			'footer_menu' => __( 'Footer Menu' )
add_action( 'init', 'thmfdn_menus' );

The existing menu locations can be removed by deleting them from the array (or commenting them out). Additional menu locations can be added here as well.

Additional Menu Locations

Menu widgets are supported in all widget areas, so additional menu locations are not typically needed.

Descriptive Menus

Standard WordPress menus display only the link text, not the link description. Longview supports displaying link descriptions in the Custom Menu widgets. Here is an example of a menu with descriptions enabled:

Menu with item descriptionsTo enable descriptive menu support, it must be added via the add_theme_support() function. Just uncomment the relevant line in the includes/settings.php file:

add_theme_support( 'menu-descriptions' );

Now all the Custom Menu widgets will have an option for displaying link descriptions.

Descriptive menu checkbox in widget options formMenu Locations vs. Menu Widgets

Both menu locations provided by the theme can be replaced with widgets. If the Inside Header widget area contains a widget, that widget will replace the default header menu. The same is true for the footer.

This has a couple benefits. First, the menu can be replaced with something other than a menu (for example, a search box or a message). Second, if a descriptive menu is required, the default menu can be replaced with a menu widget with descriptions enabled.