Jump to content

Moved footer section above header, need help resizing for accordion and for mobile

Go to solution Solved by tuanphan,

Recommended Posts

Hello. I am using the code below to move a footer section above my page header. That part worked great.

Problem 1: This section contains an accordion menu, though, and the section does not expand when the accordion menu is opened. (See screenshot.)

Problem 2: The section does not display fully in mobile view. (See screenshot.)

Thank you for your help!

 

Current code:

/*Move footer section to header */
#footer-sections .page-section:nth-child(1) {
 position: fixed!important;
 top: 0!important;
 z-index:9 9!important;
 width: 100%!important;
 height: auto!important;
}
header,#page{
margin-top: 4rem!important
}
 

Screen Shot 2023-08-21 at 2.09.04 PM.png

Screen Shot 2023-08-21 at 2.09.17 PM.png

Link to comment
  • Replies 5
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

#1. #2. Don't remove any code in your current code. Add this CSS code

/* Make header accordion works */
footer#footer-sections {
    z-index: 999999 !important;
}
Edited by tuanphan

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.