How to use Ultimenu in Drupal

Share
image

What is Ultimenu?

Ultimenu is the UltimatelyDeadSimple megamenu ever with dynamic region creation. An Ultimenu block is based on a menu. mainly we used Ultimenu to create the mobile menus in Drupal. Ultimenu regions are based on the menu items. The result is a block contains regions containing blocks, as opposed to a region contains blocks.

 Ultimenu in Drupal

How do we install Ultimenu?

Install the module with composer:
run command:
composer require ‘drupal/ultimenu:^2.11’

After downloading, click extend and enable the module. No further dependencies are required.

 How to install Ultimenu

Create the menu

To create the menus we need to follow the following steps:

Edit the menu

Click the Add link button

The Travel link points to route:<nolink>. This parent element is only there to contain other elements:

Edit link menu

How to configure Ultimenu?

Steps:

How to configure Ultimenu

Ultimenu:main Travel

To show the ultimenu for mobile & desktop, we need to enable the below configuration, there are several configurations available you can use them according to our requirements.

ultimenu for mobile & desktop

Place the Ultimenu block

Place the Ultimenu block

Configure the Ultimenu main navigation block

Here we need to update the Off-canvas element & On-canvas element ID as per our header structure. We can also manage the menu slide-in position for mobile screens. For this, we need to select the option under the off-canvas skin and flyout orientation.

Configure the ultimenu main navigation blockConfigure the ultimenu submenu

ultimate menu code

If you are using ultimenu:^2.11 then you need to add the class “is-ultimenu-canvas–active” on the body tag. for this use the below provided js code in your custom.js file. you can also overwrite ultimenu js as per our requirement.

ultimenu is not working & design

ultimate menu

Let’s Wrap It Up!

You just learned how to use the Ultimenu module in Drupal. it’s a solution that improves and streamlines your web-building experience. Take advantage of this module and build your dream website with LN Webworks Today’s.

Author

LN Webworks

LN Webworks

Your Drupal Solution Partner

Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.