BritishDan Posted March 30 Share Posted March 30 Hi everyone, I'm working on a site that has two blogs (one that is used to display projects and one for blog posts/news/stories). I am trying to hide the blog item meta wrapper on the 'projects' blog only as they don't need to have 'author' and 'date' displayed. Can anyone else me with the code that will get rid of this? Thanks so much 🙂 Link to comment
Ziggy Posted March 30 Share Posted March 30 Can you share your website URL? 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) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
abibacon Posted March 30 Share Posted March 30 Hey @BritishDan, you should be able to switch this off in the page settings however you can target the meta data on the overall blog page with the below CSS .blog-meta-section { display: none; } or use this to target it within the individual posts .blog-item-meta-wrapper { display: none; } You can target a specific page by adding this code within <style> tags in the Page specific header injection. Squarespace Developer based in Hampshire, England If you'd like to make a contribution for my time you can Buy Me A Coffee. Link to comment
BritishDan Posted March 30 Author Share Posted March 30 5 hours ago, Ziggy said: Can you share your website URL? Hi Ziggy, So I want to turn off the meta data on the project pages here - https://www.groundtruthsolutions.org/projects Link to comment
BritishDan Posted March 30 Author Share Posted March 30 47 minutes ago, abibacon said: Hey @BritishDan, you should be able to switch this off in the page settings however you can target the meta data on the overall blog page with the below CSS .blog-meta-section { display: none; } or use this to target it within the individual posts .blog-item-meta-wrapper { display: none; } You can target a specific page by adding this code within <style> tags in the Page specific header injection. Unfortunately, if I do it via the page settings, it switches the meta data off on the news pages too. The CSS doesn't seem to work for me 😞 Link to comment
Ziggy Posted March 30 Share Posted March 30 I would try adding this code to the "Post Blog Item Code Injection" in the page settings "Advanced" to have it just effect the portfolio "blogs": <style> .blog-item-wrapper .blog-item-author-date-wrapper { display: none !important; } </style> BritishDan 1 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) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
BritishDan Posted March 30 Author Share Posted March 30 Yesssss! That got rid of the author and date! Once last ask, how do I hide the category too? Thanks so much! Link to comment
Solution Ziggy Posted March 30 Solution Share Posted March 30 I've amended the code here: <style> .blog-item-wrapper .blog-item-author-date-wrapper, .blog-item-wrapper .blog-meta-item--categories { display: none !important; } </style> BritishDan and abibacon 1 1 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) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? 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