If you missed this weeks episode of The Divi Nation podcast (Episode 9 – Transitioning from Web Designer to Digital Strategist with Marie Poulin), you will have also missed this nice little quick-tip from presenter Nathan B. Weller, that shows how to make the Hamburger the default menu in your Divi theme.

To complete this Divi Quick Tip, paste the following CSS into your custom css panel under Divi > Theme Options > General Settings

@media only screen and (min-width: 980px) {
#top-menu-nav #top-menu { opacity: 0; -moz-animation: fadeOut 0.6s 1 cubic-bezier(0.77, 0, .175, 1); -ms-animation: fadeOut 0.6s 1 cubic-bezier(0.77, 0, .175, 1); -o-animation: fadeOut 0.6s 1 cubic-bezier(0.77, 0, .175, 1); -webkit-animation: fadeOut 0.6s 1 cubic-bezier(0.77, 0, .175, 1); transition: fadeOut 0.6s 1 cubic-bezier(0.77, 0, .175, 1); }
#top-menu-nav #top-menu.menu-visible { opacity: 1; -moz-animation: fadeIn 0.6s 1 cubic-bezier(0.77, 0, .175, 1); -ms-animation: fadeIn 0.6s 1 cubic-bezier(0.77, 0, .175, 1); -o-animation: fadeIn 0.6s 1 cubic-bezier(0.77, 0, .175, 1); -webkit-animation: fadeIn 0.6s 1 cubic-bezier(0.77, 0, .175, 1); transition: fadeIn 0.6s 1 cubic-bezier(0.77, 0, .175, 1); }
#top-menu-nav .menu-toggle { float: right; margin: -8px 0 0 10px; cursor: pointer; }
#top-menu-nav .menu-toggle:after { font-family: 'ETmodules'; font-size: 32px; speak: none; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; position: relative; content: '\61'; }
}

Next, navigate to Divi > Theme Options > Integration and paste the following code into the section titled “Add code to the < head > of your blog”.

<script type="text/javascript">
(function($) {
$(document).ready(function() {
 
if ($('#top-menu').length) {
$('<div class="menu-toggle"></div>').insertAfter('#top-menu');
 
$('.menu-toggle').click(function() {
$(this).prev('ul').toggleClass('menu-visible');
});
}
 
});
})(jQuery);
</script>

Comments

comments

Pin It on Pinterest

Divi Freebies

Do you want some Divi FREEBIES?

Join our mailing list to receive the latest news, reviews, examples and Divi Theme FREEBIES.

You have Successfully Subscribed!