MJohn Posted March 15, 2022 Share Posted March 15, 2022 Site URL: https://brambledesign.squarespace.com/ Hi everyone, This is what I've tried but it hasn't worked. section:nth-child(1):not(.blog-item-content) Basically I want some CSS to apply to all other 1st sections except for the individual blog post pages. pw: hello Thanks in advance! 👋 Michelle John 💕 Catchafire volunteer 🖥️ Web & graphic design for churches, nonprofits & small businesses 🔗 brambledesign.co Link to comment
tuanphan Posted March 16, 2022 Share Posted March 16, 2022 Body tag on blog page will have different class name compared other pages, so I usually exclude blog page class name with body body:not([class*="collection-type-blog"]) section:nth-child(1) { } 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
MJohn Posted March 16, 2022 Author Share Posted March 16, 2022 16 minutes ago, tuanphan said: Body tag on blog page will have different class name compared other pages, so I usually exclude blog page class name with body body:not([class*="collection-type-blog"]) section:nth-child(1) { } I just applied that code but it stopped working on the other 1st sections. body:not([class*="collection-type-blog"]) section:nth-child(1) { p { margin-top: 2em !important; margin-bottom: -1.5em !important; } h1,h2 { margin-bottom: 1.5em !important; } } 👋 Michelle John 💕 Catchafire volunteer 🖥️ Web & graphic design for churches, nonprofits & small businesses 🔗 brambledesign.co Link to comment
tuanphan Posted March 16, 2022 Share Posted March 16, 2022 4 hours ago, MJohn said: I just applied that code but it stopped working on the other 1st sections. body:not([class*="collection-type-blog"]) section:nth-child(1) { p { margin-top: 2em !important; margin-bottom: -1.5em !important; } h1,h2 { margin-bottom: 1.5em !important; } } Just checked & I see the code worked here. Try reloading your site & check again 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
MJohn Posted March 16, 2022 Author Share Posted March 16, 2022 1 hour ago, tuanphan said: Just checked & I see the code worked here. Try reloading your site & check again The other first sections should look like this (image attached). The wavy line should be closer to the top text. 👋 Michelle John 💕 Catchafire volunteer 🖥️ Web & graphic design for churches, nonprofits & small businesses 🔗 brambledesign.co Link to comment
MJohn Posted March 18, 2022 Author Share Posted March 18, 2022 On 3/16/2022 at 2:46 PM, tuanphan said: Just checked & I see the code worked here. Try reloading your site & check again Any updates on this? 👋 Michelle John 💕 Catchafire volunteer 🖥️ Web & graphic design for churches, nonprofits & small businesses 🔗 brambledesign.co Link to comment
tuanphan Posted March 19, 2022 Share Posted March 19, 2022 On 3/16/2022 at 2:58 PM, MJohn said: The other first sections should look like this (image attached). The wavy line should be closer to the top text. Can you share link to page in screenshot? 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
MJohn Posted March 21, 2022 Author Share Posted March 21, 2022 https://brambledesign.squarespace.com/work 👋 Michelle John 💕 Catchafire volunteer 🖥️ Web & graphic design for churches, nonprofits & small businesses 🔗 brambledesign.co Link to comment
MJohn Posted March 21, 2022 Author Share Posted March 21, 2022 Oh I got it! It's because that page is also considered a blog page. I've fixed it. Thanks Tuan! tuanphan 1 👋 Michelle John 💕 Catchafire volunteer 🖥️ Web & graphic design for churches, nonprofits & small businesses 🔗 brambledesign.co 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