KodyConnell Posted February 2, 2022 Share 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 Link to comment
Beyondspace Posted February 3, 2022 Share 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 Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you Link to comment
KodyConnell Posted February 4, 2022 Author Share 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. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment