Beaver Builder: Turn in a Standard menu to a Mega menu without Plugin

Photo by Foo Visuals on Unsplash

Beaver Builder: Turn in a Standard menu to a Mega menu without Plugin

Beaver Builder Theme (Version: 1.7.11)

ยท

2 min read

If you use Beaver Builder Theme you can turn in standard drop-down menus into a mega menus without plugins.

Let's Create a Mega Menu

From the WordPress admin panel, click Appearance > Menus.

In the upper right corner, click Screen Options and make sure the CSS Classes checkbox is selected.

Screen Options.jpg

Screen Options CSS Classes.jpg

Create a menu items like below. Put Products, Services, Resources and Get Started as top-level menu item. Add Mega Heading as second-level and Mega link as third-level.

Mega Menu Structure.jpg

Scroll down to your top-level menu items that you would like to turn into a mega menu. Open the top-level menu item. In the screenshot above, the target top-level item is Products.

In the CSS Classes field, enter mega-menu, as shown in the screenshot.

class mega-menu.jpg

For this menu, I added mega-menu to Products and Services to the CSS Classes field. After you saved the menu, your menu would look like below.

none styled.png

Hiding the Mega Heading

Hide Heading.jpg

If you don't want to have the Mega Heading, you can hide it with entering hide-heading in the CSS Class field.

Hide Mega Heading.png

Add styling to the mega menu.

Now you have the mega menu you want to add some styling. But it's hidden until you mouse over to the top-level item.

Use Developer > Inspect Tool on Chrome, inspect the top-level item. In this case Products. Check on :hover state.

Check Hover Filter.jpg

Or class fl-sub-menu-open to the li.menu-item.

adding class.jpg

More options for the CSS Class field

CTA Button.jpg

Since you can add a class to each link items, you can make the top-level item to a CTA button. Add nav-cta-primary to the CSS Class field. Add below CSS to the CSS file.

#menu-mega-menu li.nav-cta-primary>a {
    border-radius: 50px;
    padding:15px 32px;
    color: white;
    background: blue;
    transition: all 0.3s ease;
}
#menu-mega-menu li.nav-cta-primary>a:hover,
#menu-mega-menu li.nav-cta-primary>a:focus {
    color: white;
    background: black;
}

Did you find this article valuable?

Support Yuki Dev by becoming a sponsor. Any amount is appreciated!

ย