Jump to content

Different footer for mobile

Recommended Posts

I have 2 footers setup, one for desktop and one for mobile. I'm using this code to show/hide the footers in the different media queries:

  /* remove mobile footer on desktop only */
@media screen and (min-width:780px) {
#yui_3_17_2_1_1609860234096_434  {
    display: none !important;
}
}


/* remove desktop footer on mobile only */
@media screen and (max-width:781px) {
#yui_3_17_2_1_1609860234096_411 {
    display: none;
}
}

 

The code works when I'm in Squarespace but when I view in live mode I see both footers. Please help!

Link to comment
  • Replies 5
  • Views 2k
  • Created
  • Last Reply
On 1/8/2021 at 4:47 AM, Amval said:

I don't see a #block-yui for the footer. Any suggestions?

 

If 7.1, you can target data-secion-id, use this tool. https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en

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
On 1/10/2021 at 1:40 AM, tuanphan said:

 

On 1/6/2021 at 10:30 PM, tuanphan said:

Hi. Target #block-yui

Don't target #yui

 

On 1/10/2021 at 1:40 AM, tuanphan said:

Thank you!

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.