Priscillia Posted December 5, 2023 Share Posted December 5, 2023 Hello, I am trying to hide the blog title and next article in the blog posts. I tried the following CSS : /*Hide view next post in blog*/ .item-pagination { display:none !important; } //hide tags at botton of blog posts .blog-meta-item--tags { display: none; font-family: 'EXPOSURE'; } //change blog title font within blog post .blog-item-title h1 { display: none; font-family: 'EXPOSURE'; } https://blenny-blue-6prx.squarespace.com/blog-locations/cimdix-2ws34-nmlnc password : password 1234 Thanks in advance ! Priscillia Link to comment
melody495 Posted December 5, 2023 Share Posted December 5, 2023 (edited) Updated code Hi @Priscillia you can try to replace your code with the below. I've added my comments of what I changed within the code /*Hide view next post in blog*/ #itemPagination .item-pagination-link{ // changed the selector display:none !important; } //hide tags at botton of blog posts .blog-meta-item--tags { display: none; // haven't checked this, this ok? font-family: 'EXPOSURE'; } //change blog title font within blog post #article- .blog-item-title h1 { display: none; // added blog post selector, should work, if not add !important. font-family: 'EXPOSURE'; } Let me know how it goes. Edited December 5, 2023 by melody495 -------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification Melody | Squarespace Nerd e: melody@melodylee.tech 💻 💁♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn? 👩💻 💁♀️ Website help <- send me your to-do list. From code to plugin to domain setup. 🧰 See the tools I use (contain affiliate links) ☕ Did I help? I like coffee (Thank you) Link to comment
Priscillia Posted December 5, 2023 Author Share Posted December 5, 2023 5 minutes ago, melody495 said: Hi @Priscillia you can try to replace your code with the below. I've added my comments of what I changed within the code /*Hide view next post in blog*/ #itemPagination { // changed the selector from class to id display:none !important; } //hide tags at botton of blog posts .blog-meta-item--tags { display: none; // haven't checked this, this ok? font-family: 'EXPOSURE'; } //change blog title font within blog post .blog-item-title h1 { display: none !important; // added important font-family: 'EXPOSURE'; } Let me know how it goes. Hello Melody, Unfortunately these didn't work ! I had tried as well to add !important to no avail. Any other idea / selectors ? 😩 Link to comment
melody495 Posted December 5, 2023 Share Posted December 5, 2023 3 minutes ago, Priscillia said: Hello Melody, Unfortunately these didn't work ! I had tried as well to add !important to no avail. Any other idea / selectors ? 😩 Hi, please save and refresh to see? I cannot see the new code on your website. Actually I can't see your old code either. Have you removed both? Are you adding the code to Website -> Website Tools (under Not Linked) -> Custom CSS? -------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification Melody | Squarespace Nerd e: melody@melodylee.tech 💻 💁♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn? 👩💻 💁♀️ Website help <- send me your to-do list. From code to plugin to domain setup. 🧰 See the tools I use (contain affiliate links) ☕ Did I help? I like coffee (Thank you) Link to comment
Priscillia Posted December 5, 2023 Author Share Posted December 5, 2023 27 minutes ago, melody495 said: Hi, please save and refresh to see? I cannot see the new code on your website. Actually I can't see your old code either. Have you removed both? Are you adding the code to Website -> Website Tools (under Not Linked) -> Custom CSS? Hello, yes you can see it right here on the left. I have used code already on several other websites. I tried using codes that already worked in the others but here for the title and next item it doesn't do anything ! Link to comment
Priscillia Posted December 5, 2023 Author Share Posted December 5, 2023 Another possibility would be to target the already existing title to change the font and center it, instead of trying to hide it. But i encounter the same issue into finding the correct selector / id Link to comment
melody495 Posted December 5, 2023 Share Posted December 5, 2023 10 minutes ago, Priscillia said: Another possibility would be to target the already existing title to change the font and center it, instead of trying to hide it. But i encounter the same issue into finding the correct selector / id I have updated my code above, can you check? -------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification Melody | Squarespace Nerd e: melody@melodylee.tech 💻 💁♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn? 👩💻 💁♀️ Website help <- send me your to-do list. From code to plugin to domain setup. 🧰 See the tools I use (contain affiliate links) ☕ Did I help? I like coffee (Thank you) Link to comment
Priscillia Posted December 5, 2023 Author Share Posted December 5, 2023 4 hours ago, melody495 said: I have updated my code above, can you check? Still not changing anything ! I don't understand how it is possible really. Link to comment
melody495 Posted December 5, 2023 Share Posted December 5, 2023 28 minutes ago, Priscillia said: Still not changing anything ! I don't understand how it is possible really. I have no idea! It seems to be turning your CSS into .summary-item-list. Here is a screenshot of what your CSS on your website is, these I think are what you put in, but all have .summary-item-list appended. Maybe others can chime in 🤔 -------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification Melody | Squarespace Nerd e: melody@melodylee.tech 💻 💁♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn? 👩💻 💁♀️ Website help <- send me your to-do list. From code to plugin to domain setup. 🧰 See the tools I use (contain affiliate links) ☕ Did I help? I like coffee (Thank you) 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