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!

Edited by Amval
Link to comment
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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

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.