function mmm_pushing_content () {
			function_selector = '.mega_main_menu.direction-horizontal.pushing_content-enable';
			jQuery( function_selector ).unbind();
			jQuery( function_selector ).each( function( index, element ) {
				// rules_priority
				if ( jQuery( element ).hasClass( 'coercive_styles-enable' ) ) {
					rules_priority = ' !important';
				} else {
					rules_priority = '';
				}
				menu_holder_height = jQuery( element ).find( '.menu_holder' ).outerHeight( true );
				click_item = false;
				if ( jQuery( element ).hasClass( 'dropdowns_trigger-click' ) ) {
					// dropdowns_trigger
					dropdowns_trigger = 'click';
					// calculations
					if ( jQuery( '.mega_main_menu .nav_logo.mobile_menu_active' ).length ) {
					} else {
						jQuery( 'body' ).on( dropdowns_trigger, function ( body_el ) {
								menu_item_class = jQuery( body_el.target ).closest( '.menu-item' ).attr( 'class' );
								if ( typeof jQuery( body_el.target ).parents( '.menu-item' ).attr( 'class' ) != 'undefined' ) {
									jQuery( element ).css({ height: menu_holder_height + jQuery( this ).find( '.mega_main_menu_ul > li.keep_open > .mega_dropdown' ).outerHeight( true ) + rules_priority });
									if ( click_item == menu_item_class ) {
										jQuery( element ).css({ height: menu_holder_height });
										click_item = false;
									} else {
										click_item = jQuery( body_el.target ).closest( '.menu-item' ).attr( 'class' );
									}
								} else {
									jQuery( element ).css({ height: menu_holder_height });
									click_item = false;
								}
						});
					}
				} else {
					// dropdowns_trigger
					dropdowns_trigger = 'hover mouseleave';
					// calculations
					if ( jQuery( '.mega_main_menu .nav_logo.mobile_menu_active' ).length ) {
					} else {
						jQuery( element ).find( 'li' ).on( dropdowns_trigger, function ( body_el ) {
								jQuery( element ).delay( 200 ).css({ height: menu_holder_height + jQuery( element ).find( '.mega_main_menu_ul > li:hover > .mega_dropdown' ).outerHeight( true ) + rules_priority });
						});
					}
				}
			});
		}
/* 
		 * Pushing the content when dropdowns visible
		 */
Pushing the content when dropdowns visible
Pushing the content when dropdowns visible
function mmm_pushing_content () {
			function_selector = '.mega_main_menu.direction-horizontal.pushing_content-enable';
			jQuery( function_selector ).unbind();
			jQuery( function_selector ).each( function( index, element ) {
				if ( jQuery( element ).hasClass( 'coercive_styles-enable' ) ) {
					rules_priority = ' !important';
				} else {
					rules_priority = '';
				}
				menu_holder_height = jQuery( element ).find( '.menu_holder' ).outerHeight( true );
				click_item = false;
				if ( jQuery( element ).hasClass( 'dropdowns_trigger-click' ) ) {
					dropdowns_trigger = 'click';
					if ( jQuery( '.mega_main_menu .nav_logo.mobile_menu_active' ).length ) {
					} else {
						jQuery( 'body' ).on( dropdowns_trigger, function ( body_el ) {
								menu_item_class = jQuery( body_el.target ).closest( '.menu-item' ).attr( 'class' );
								if ( typeof jQuery( body_el.target ).parents( '.menu-item' ).attr( 'class' ) != 'undefined' ) {
									jQuery( element ).css({ height: menu_holder_height + jQuery( this ).find( '.mega_main_menu_ul > li.keep_open > .mega_dropdown' ).outerHeight( true ) + rules_priority });
									if ( click_item == menu_item_class ) {
										jQuery( element ).css({ height: menu_holder_height });
										click_item = false;
									} else {
										click_item = jQuery( body_el.target ).closest( '.menu-item' ).attr( 'class' );
									}
								} else {
									jQuery( element ).css({ height: menu_holder_height });
									click_item = false;
								}
						});
					}
				} else {
					dropdowns_trigger = 'hover mouseleave';
					if ( jQuery( '.mega_main_menu .nav_logo.mobile_menu_active' ).length ) {
					} else {
						jQuery( element ).find( 'li' ).on( dropdowns_trigger, function ( body_el ) {
								jQuery( element ).delay( 200 ).css({ height: menu_holder_height + jQuery( element ).find( '.mega_main_menu_ul > li:hover > .mega_dropdown' ).outerHeight( true ) + rules_priority });
						});
					}
				}
			});
		}
function mmm_pushing_content ( ) { function_selector = '.mega_main_menu.direction-horizontal.pushing_content-enable' ; jQuery ( function_selector ) . unbind ( ) ; jQuery ( function_selector ) . each ( function ( index , element ) { if ( jQuery ( element ) . hasClass ( 'coercive_styles-enable' ) ) { rules_priority = ' !important' ; } else { rules_priority = '' ; } menu_holder_height = jQuery ( element ) . find ( '.menu_holder' ) . outerHeight ( true ) ; click_item = false ; if ( jQuery ( element ) . hasClass ( 'dropdowns_trigger-click' ) ) { dropdowns_trigger = 'click' ; if ( jQuery ( '.mega_main_menu .nav_logo.mobile_menu_active' ) . length ) { } else { jQuery ( 'body' ) . on ( dropdowns_trigger , function ( body_el ) { menu_item_class = jQuery ( body_el . target ) . closest ( '.menu-item' ) . attr ( 'class' ) ; if ( typeof jQuery ( body_el . target ) . parents ( '.menu-item' ) . attr ( 'class' ) != 'undefined' ) { jQuery ( element ) . css ( { height : menu_holder_height + jQuery ( this ) . find ( '.mega_main_menu_ul > li.keep_open > .mega_dropdown' ) . outerHeight ( true ) + rules_priority } ) ; if ( click_item == menu_item_class ) { jQuery ( element ) . css ( { height : menu_holder_height } ) ; click_item = false ; } else { click_item = jQuery ( body_el . target ) . closest ( '.menu-item' ) . attr ( 'class' ) ; } } else { jQuery ( element ) . css ( { height : menu_holder_height } ) ; click_item = false ; } } ) ; } } else { dropdowns_trigger = 'hover mouseleave' ; if ( jQuery ( '.mega_main_menu .nav_logo.mobile_menu_active' ) . length ) { } else { jQuery ( element ) . find ( 'li' ) . on ( dropdowns_trigger , function ( body_el ) { jQuery ( element ) . delay ( 200 ) . css ( { height : menu_holder_height + jQuery ( element ) . find ( '.mega_main_menu_ul > li:hover > .mega_dropdown' ) . outerHeight ( true ) + rules_priority } ) ; } ) ; } } } ) ; }
Pushing the content when dropdowns visible
Pushing the content when dropdowns visible
// rules_priority // dropdowns_trigger // calculations // dropdowns_trigger // calculations