KodyConnell Posted February 2, 2022 Posted February 2, 2022 Site URL: https://kccbd.net Hey there! I had recently purchased a plugin where the footer of my website would essentially slide out from the bottom of the page when scrolling down to the bottom. However, after applying it via code injection, it simply extended the footer with large, white empty space. I'm not sure if anyone would be able in identifying the rationale to it not working. Thank you so much! The code used is as follows: <style>footer {position:fixed;left:0;bottom:0;width:100%;box-sizing:border-box; max-width:100vw !important;z-index:-9;} footer .sqs-layout {word-wrap: break-word; width:100%;max-width:1200px;margin-left:auto;margin-right:auto;} html{background:#fff !important;}</style> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> <div class="footerbox" style="pointer-events:none;"> </div> <script> $(function(){ $( ".footerbox" ).insertAfter( $( "body" ) ); }); </script> <script> $(window).resize(function(){ var footheight = $("footer").outerHeight(); $(".footerbox").css({height: footheight}); }); </script> <script> $(function(){ var footheight = $("footer").outerHeight(); $(".footerbox").css({height: footheight}); }); </script> Additionally, this is the URL to the website where I had purchased/accessed the code as an example of it in action: Drawer Footer Squarespace Plugin — SquareStudio
Beyondspace Posted February 3, 2022 Posted February 3, 2022 I've checked that the class footerbox cause the space Try adding to Home > Design > Custom Css to hide it .footerbox { display: none; } Support me by pressing 👍 if this useful for you BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
KodyConnell Posted February 4, 2022 Author Posted February 4, 2022 Thank you for responding. After applying the piece of code, it did indeed hide the blank white space; however, the footer still doesn't slide out from the bottom of the website as it is supposed to. Not sure if there is an issue within the coding itself that is preventing such from occurring? Thank you.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment