Sometimes you want to present a navigation menu as a horizontal “mega-menu” instead of a hierarchal dropdown menu. This is really simple if you are using Beaver Builder. The mega-menu feature is built in, but is unfortunately hidden. You have to know the secret to turn it on.
Converts a submenu dropdown to a full-width horizontal mega-menu.
UL.fl-menu-horizontal LI.mega-menu > UL.sub-menu:after { content: ""; display: block; position: absolute; left: 50%; top: -1px; height: 101%; width: 100vw; transform: translateX(-50%); z-index: -1; box-sizing: border-box; border-top: 1px solid #efefef; background-color: #efefef; /* This is for full width shadow. You need to turn off "sub-menu drop shadow" in the menu module. Remove this if not needed. */ -moz-box-shadow: -2px 4px 9px 0 rgba(134, 134, 134, 0.451); -webkit-box-shadow: -2px 4px 9px 0 rgba(134, 134, 134, 0.451); box-shadow: -2px 4px 9px 0 rgba(134, 134, 134, 0.451); }
Limit search for phrases by using " " around the phrase
You will get an email the morning after we post a new Code Snippet
“I never tried to prove nothing, just wanted to give a good show. My life has always been my music, it’s always come first, but the music ain’t worth nothing if you can’t lay it on the public. The main thing is to live for that audience, ’cause what you’re […]
Read MoreWordPress, how do I love thee? Let me count the ways (in 140 characters or less).
Read MoreThe WordPress Theme Review Team Website
Read MoreOnly one thing is impossible for God: To find any sense in any copyright law on the planet. Mark Twain
Read MoreAbbott: Strange as it may seem, they give ball players nowadays very peculiar names. Costello: Funny names? Abbott: Nicknames, nicknames. Now, on the St. Louis team we have Who’s on first, What’s on second, I Don’t Know is on third– Costello: That’s what I want to find out. I want […]
Read More
Reader Interactions