BruthaBear Posted March 29, 2021 Share Posted March 29, 2021 Site URL: https://photojourneys.co.uk/footertest Hi there! I was wondering whether anyone could help with the following page: https://photojourneys.co.uk/footertest/ I may have not noticed, but the code I would normally add to this category of pages would not affect the footer. It does apparently and now scroll bars have showed up in the footer (please see screenshot). The code I am using is as follows: <style> @media only screen and (max-width: 780px) { [data-section-id="6061e9223077a120e417e48a"] { display: none !important; } } @media only screen and (min-width: 781px) { [data-section-id="6061f14c60b0890b87899b58"] { display: none !important; } } @media only screen and (min-width: 768px){ .page-section:nth-child(1) .section-background{margin-left:3%; width:50%; overflow-y:hidden; margin-bottom:3%; margin-top:3% } .page-section:nth-child(1) .content-wrapper{margin-left:53%; height:10vh; overflow-y:scroll; padding-bottom:100!important;} } } </style> Would there be a way for the code to only affect the content sections instead and not the footer? Many thanks! Beyondspace 1 Link to comment
Beyondspace Posted March 30, 2021 Share Posted March 30, 2021 8 hours ago, BruthaBear said: Site URL: https://photojourneys.co.uk/footertest Hi there! I was wondering whether anyone could help with the following page: https://photojourneys.co.uk/footertest/ I may have not noticed, but the code I would normally add to this category of pages would not affect the footer. It does apparently and now scroll bars have showed up in the footer (please see screenshot). The code I am using is as follows: <style> @media only screen and (max-width: 780px) { [data-section-id="6061e9223077a120e417e48a"] { display: none !important; } } @media only screen and (min-width: 781px) { [data-section-id="6061f14c60b0890b87899b58"] { display: none !important; } } @media only screen and (min-width: 768px){ .page-section:nth-child(1) .section-background{margin-left:3%; width:50%; overflow-y:hidden; margin-bottom:3%; margin-top:3% } .page-section:nth-child(1) .content-wrapper{margin-left:53%; height:10vh; overflow-y:scroll; padding-bottom:100!important;} } } </style> Would there be a way for the code to only affect the content sections instead and not the footer? Many thanks! Try to target the page content id #page <style> @media only screen and (max-width: 780px) { [data-section-id="6061e9223077a120e417e48a"] { display: none !important; } } @media only screen and (min-width: 781px) { [data-section-id="6061f14c60b0890b87899b58"] { display: none !important; } } @media only screen and (min-width: 768px){ #page .page-section:nth-child(1) .section-background{margin-left:3%; width:50%; overflow-y:hidden; margin-bottom:3%; margin-top:3% } #page .page-section:nth-child(1) .content-wrapper{margin-left:53%; height:10vh; overflow-y:scroll; padding-bottom:100!important;} } } </style> BruthaBear 1 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
BruthaBear Posted March 30, 2021 Author Share Posted March 30, 2021 Hi bangank36, Many thanks for your prompt reply. I would like to confirm that the code has worked! Your help is much appreciated. -- BruthaBear Beyondspace 1 Link to comment
Beyondspace Posted March 30, 2021 Share Posted March 30, 2021 59 minutes ago, BruthaBear said: Hi bangank36, Many thanks for your prompt reply. I would like to confirm that the code has worked! Your help is much appreciated. -- BruthaBear Thanks for the feedback, have a good day! 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment