Jump to content

How can I remove blog post excerpts from summary blocks in mobile view only?

Go to solution Solved by Ziggy,

Recommended Posts

  • Solution

Put this into the Custom CSS on your website.
This will hide the blog excerpt globally on your website from summary blocks, and can be targeted to specific pages if you need.

@media only screen and (max-width:767px) {
  .sqs-block-summary-v2 .summary-excerpt {
    display:none;
  }
}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
🔌
 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 Did I help? Buy me a coffee?

Link to comment
26 minutes ago, KatieQ said:

Site URL: https://www.designbycaitie.ca

I have blog post summary blocks on my main home page and within every blog post. The excerpts are fine on desktop but are too long and unwieldy on mobile. I haven't been able to find any code that disables/removes the excerpt from mobile view only.

Does anyone know how to do this?

Add these code on Custom CSS Section

@media only screen and (max-width: 767px) {
  [data-section-id="62d6fd22883d450f0e483209"] {
    .summary-excerpt {
      display: none !important;
    }
  }
  [data-section-id="62857cb8a40e772c6bec8f48"] {
    .blog-excerpt-wrapper{
      display: none !important;
    }
  }
}

 

Edited by Web_Solutions
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.