ZoSkinJon Posted June 29, 2021 Posted June 29, 2021 Site URL: https://ttmspa.com Hello! I was hoping someone could help me with an issue I am seeing on my website. I have a mega menu using code injection, but starting today, the menu has a block of white space above the menu content. I have referred to the source pages for the mega menu and everything displays properly. Below is the code injection: <script> $('.header-nav-folder-title[href^="/mega-"]').each(function() { var link = $(this).attr('href'); var idName = link.slice(6); $(this).parent().addClass('mega-menu'); $(this).parent().after('<div id='+idName+' class="mega-menu-item"></div>'); $('#'+idName).load('/mega-page-' + idName + ' #page',function(){ window.Squarespace.initializeLayoutBlocks(Y); }); }) </script> Thank you so much!
Beyondspace Posted July 2, 2021 Posted July 2, 2021 On 6/30/2021 at 3:18 AM, ZoSkinJon said: Site URL: https://ttmspa.com Hello! I was hoping someone could help me with an issue I am seeing on my website. I have a mega menu using code injection, but starting today, the menu has a block of white space above the menu content. I have referred to the source pages for the mega menu and everything displays properly. Below is the code injection: <script> $('.header-nav-folder-title[href^="/mega-"]').each(function() { var link = $(this).attr('href'); var idName = link.slice(6); $(this).parent().addClass('mega-menu'); $(this).parent().after('<div id='+idName+' class="mega-menu-item"></div>'); $('#'+idName).load('/mega-page-' + idName + ' #page',function(){ window.Squarespace.initializeLayoutBlocks(Y); }); }) </script> Thank you so much! You announcement style messed with the mega menu .mega-menu-item .page-section { padding-top: 0 !important; } BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
Recommended Posts
Archived
This topic is now archived and is closed to further replies.