Jump to content

Remove Category Details from Metadata, but keep within Archive

Go to solution Solved by tuanphan,

Recommended Posts

Hi, 

 

I would love to know if there was the option using CSS to remove the "All" Category from the MetaData. I had tried this code: 

[href*="All"] {
    display: none;
}

 

However, this also removes the All category from the archive list, which I would love to keep. 

It also keeps the comma from the previous metatag, is there anyway to improve this? 

Please see screenshots to understand the context a little better!

Thanks in advance!Screenshot2024-03-26at16_11_13.thumb.png.84c90d0b030b06cd8ce4b99afd16f73f.pngScreenshot2024-03-26at16_11_25.thumb.png.389e9abebe10611b5e990cc138f93b33.png

 

Link to comment
  • Replies 7
  • Views 1.6k
  • Created
  • Last Reply

Top Posters In This Topic

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 
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) 
 🖼️ Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
On 3/31/2024 at 12:42 AM, phobaker said:

foodwithpho.squarespace.com
pass: foodie

Recipes page 

You can use this code to Website > Website Tools > Custom CSS

div#block-yui_3_17_2_1_1711457472893_10880 li:nth-child(1) {
    display: none;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Thank you so much for getting back! Unfortunately I am referring to removing all from the short meta tags under each recipe and keep it within the archive. This seems to do the opposite 😞 

Link to comment
On 4/5/2024 at 8:52 PM, phobaker said:

Thank you so much for getting back! Unfortunately I am referring to removing all from the short meta tags under each recipe and keep it within the archive. This seems to do the opposite 😞 

https://foodwithpho.squarespace.com/recipes

You mean remove here?

image.png.935792bdb73dcb437de6348141afd9f3.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 weeks later...
  • Solution
On 4/19/2024 at 10:37 PM, phobaker said:

Hi, yes! Thank you 

 

You can use this CSS code

a.blog-categories[href="/recipes/category/All"], a.blog-categories[href="/recipes/category/All"]+span {
    display: none;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.