Home › Forums › Support › Mobile menu below Logo This topic has 10 replies, 3 voices, and was last updated 8 years ago by Richard Bland. Viewing 11 posts - 1 through 11 (of 11 total) Author Posts March 29, 2015 at 11:08 am #93093 Roberto Enrique Is it possible to move the mobile menu below the logo? March 30, 2015 at 12:13 am #93231 TomLead Developer Lead Developer Where do you currently have it placed? I can provide some javascript that will move it on mobile once I know π Thanks! March 30, 2015 at 12:57 am #93241 Roberto Enrique Right now is placed at the right side of the logo: March 30, 2015 at 11:58 am #93441 Roberto Enrique I really need to put that menu bellow logo. Can you put me in the right direction, I’m not that proficient with coding. If it is not possible just let me know. Thanks in advance March 30, 2015 at 12:09 pm #93453 TomLead Developer Lead Developer Adding this code to the wp_footer hook should do the trick: <script type="text/javascript"> jQuery(window).load(function($) { var mobile, widthTimer; mobile = jQuery( '.menu-toggle' ); function generateCheckWidth() { if ( mobile.is( ':visible' ) ) { jQuery('.main-navigation').appendTo('.inside-header'); } else { jQuery('.main-navigation').prependTo('.inside-header'); } } if ( mobile.is( ':visible' ) ) { generateCheckWidth(); } jQuery(window).resize(function() { clearTimeout(widthTimer); widthTimer = setTimeout(generateCheckWidth, 100); }); }); </script> Let me know if that works or not π March 30, 2015 at 12:36 pm #93481 Roberto Enrique It works Tom, the style changes a little bit, the menu is now full with but I think I can handle that with some simple css. Before: After: Thank you very much. March 30, 2015 at 12:41 pm #93482 TomLead Developer Lead Developer Interesting – if you want to send me a URL via email feel free – I may be able to see why it’s gone to full width. March 30, 2015 at 9:02 pm #93550 TomLead Developer Lead Developer I edited my code above – it should work now π March 30, 2015 at 11:54 pm #93570 Roberto Enrique That was just perfect! Thanks Tom. March 31, 2015 at 9:16 am #93780 TomLead Developer Lead Developer You’re welcome π September 3, 2015 at 5:56 am #134036 Richard Bland Sweet! Author Posts Viewing 11 posts - 1 through 11 (of 11 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In