KatieQ Posted September 16, 2022 Share Posted September 16, 2022 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? Link to comment
Solution Ziggy Posted September 16, 2022 Solution Share Posted September 16, 2022 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; } } KatieQ 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Web_Solutions Posted September 16, 2022 Share Posted September 16, 2022 (edited) 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 September 16, 2022 by Web_Solutions Create_Job and Kobir 2 If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment