Jump to content

Code - How to hide banners on all pages EXCEPT for the main website page?

Recommended Posts

  • Replies 10
  • Views 763
  • Created
  • Last Reply
48 minutes ago, Sladey16 said:

Hi,

How do you hide banners on all pages EXCEPT for the main website page?

Thank you!!

What is your site url?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
6 minutes ago, Sladey16 said:

dinosandyoung.squarespace.com

Password: dinosandyoung2021

Use the page unique id

.page-banner-wrapper {
  display: none;
}
#collection-60148b45c73a964fde9cb674 .page-banner-wrapper {
  display: block;
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
Just now, Sladey16 said:

Will this look the same on a mobile phone?

hide on both desktop mobile

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
31 minutes ago, Sladey16 said:

I only want banner on front page and CONTACT  page.... the same code?

change

.page-banner-wrapper {
  display: none;
}
#collection-60148b45c73a964fde9cb674 .page-banner-wrapper,
#collection-60149e4dff58f81f27bab4e3 .page-banner-wrapper {
  display: block;
}

Use this tool to check page id

Chrome Web Store - Extensions (google.com)

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
  • 2 weeks later...
On 3/9/2021 at 10:45 AM, Sladey16 said:

dinosandyoung.squarespace.com

Password: dinosandyoung2021

Hi. I see your site overlap on mobile..

You can add this to Design > Custom CSS

/* Mobile home overlap */
@media screen and (max-width:767px) {
div#page-60148b45c73a964fde9cb674 {
    margin-top: 120px;
}
span.sqs-announcement-bar-close {
    display: none;
}
}

image.thumb.png.c287f98f4a531ef0e2cf6f2590c91167.png

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
  • 1 month later...

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.