Jump to content

Show filtered category name

Recommended Posts

Site URL: https://isabmonaco.com/shop-1

Site URL: https://isabmonaco.com/shop-1/homediffuser

Hi everyone,

I need help with the filter categories in my website, I use  Squarespace 7.1, business account. 

 1 ) In the shop section I would like to have always have the filter categories  sticked  on the right when I scroll.
Same thing on the mobile but sticked on top or on the right. (maybe adding a background the header?) (screenshot attached)

2) I would like to have the category filter path at the top of the product. On the desktop it shows only the product name and on the mobile the same.

 

Has anyone figured out a way to do this?

Many thanks,
Claudia

Screenshot 2022-09-11 at 17.59.22.png

Screenshot 2022-09-11 at 17.59.44.png

Link to comment

Hi @tuanphan I've used this code for the desktop and it's working. How could I have the same result on mobile? 

// Product Cagetory Sidebar Style //

.products.collection-content-wrapper .nested-category-tree-wrapper {
  background: #F3F4F2;
  border: 0px solid #F3F4F2;
  border-radius: 00px;
  padding: 30px;
  text-align: left;
  font-size: 18px;
}

Link to comment

#1. Sticky: I see you fixed?

#2. Add to Design > Custom CSS

/* Show category Link (ver 3) */
@media screen and (max-width:767px) {
	h2.nested-category-title.nested-category-title-padding + .nested-category-tree-wrapper {
    display: flex;
    float: none !important;
    max-width: unset !important;
    min-width: unset !important;
    width: 100% !important;
    padding-left: 0 !important;
}
h2.nested-category-title.nested-category-title-padding + .nested-category-tree-wrapper ul {
    display: flex;
    align-items: flex-start;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
}
    h2.nested-category-title.nested-category-title-padding + .nested-category-tree-wrapper ul li {
        margin-left: 10px;
        margin-right: 10px;
    }
	.products.collection-content-wrapper .nested-category-tree-wrapper>ul>li:first-child a {
		padding-top: 6px;
	}
}

 

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
10 hours ago, claudiafrat said:

 

Hi @tuanphan thank you!

Just two things: how can I reduce the height of the gray bar that contains the filters and remove that space between the bar and the header?

image.thumb.png.52f16f0edc01b256ebf4ad844474c321.png

Remove this space?

image.png.c98347419a736e141c2e735c479d100e.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

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.