Advertisement
arie_cristianD

make mega menu fullwidth

Oct 22nd, 2024
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3.  
  4. (function($){
  5.     $(document).on('ready', function() {
  6.         let container = $('.jeg_header_wrapper .jeg_midbar .container');
  7.         let posisition = ($( window ).width() - container.width()) / 2 ;
  8.         $( ".jeg_megamenu" ).find('.sub-menu').css({"left": '-' + posisition + 'px',"right": '-' + posisition + 'px'});
  9.     })
  10. })(jQuery);
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement