Jump to content

How do I hide "all" as an option for product categories?

Go to solution Solved by DPruitt,

Recommended Posts

Hi! I would love for my customers to be able to sort through products by category, but I would prefer the "all" link not be there so items in different categories don't show up side by side. How do I write code to do this? Thank you for your help!

Edited by rtijori
Link to comment
On 7/7/2023 at 1:34 AM, rtijori said:

Thank you for the suggestion! When I use this, the "All" is still there though and it adds a black header to top of my page. 

 

Am I putting this is the wrong location? I went to Shop Settings, Advanced and then put this in Page Header Code Injection.

Hi,

No. It should be in Design > Custom CSS

squarespace-add-css1-min.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
On 7/3/2023 at 4:29 PM, DPruitt said:
.nested-category-tree-wrapper
.category-item:first-child
{display:none;}

I found the correct location to add this code! Unfortunately though, it doesn't hide the "all". Is there anything else I could try? Or should be doing first? Thank you again!

Link to comment
  • 2 weeks later...

Thank you. 

When I go to my TOP CATEGORY it doesn’t give the option ‘filter visibility’.

Also, if I made this invisible, how would people get to the other categories?

Is this because I’m on version 7.0? I don’t have the budget to upgrade at present.

Thanks.

 

Link to comment
19 hours ago, rayinado said:

Thank you. 

When I go to my TOP CATEGORY it doesn’t give the option ‘filter visibility’.

Also, if I made this invisible, how would people get to the other categories?

Is this because I’m on version 7.0? I don’t have the budget to upgrade at present.

Thanks.

 

Can you share site url?

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.