Jump to content

How to Keep store navigation on category pages and not just main store page?

Recommended Posts

  • 8 months later...
  • 3 months later...

Greetings -  I'm working with the same alignment issue.

Have added code to custom CSS in order to keep categories menu on top of subsequent pages:

/* Show category nav links */
div.nested-category-tree-wrapper {
    display: flex !important;
    float: none !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
}
section.products.collection-content-wrapper.products-list {
    flex-direction: column !important;
    display: flex;
}
.nested-category-tree-wrapper>ul {
    width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
.nested-category-tree-wrapper>ul li {
    margin-left: 2vw;
}
nav.nested-category-breadcrumb {
    display: none !important;
}
ul.nested-category-children {
    display: none !important;
}

But first item of category menu 'All Ages' is misaligned - slightly higher.  Can you help?

lobster-impala-satr.squarespace.com

 

Screen Shot 2023-01-15 at 2.23.17 PM.png

Link to comment
11 hours ago, kelewis said:

Greetings -  I'm working with the same alignment issue.

Have added code to custom CSS in order to keep categories menu on top of subsequent pages:

/* Show category nav links */
div.nested-category-tree-wrapper {
    display: flex !important;
    float: none !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
}
section.products.collection-content-wrapper.products-list {
    flex-direction: column !important;
    display: flex;
}
.nested-category-tree-wrapper>ul {
    width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
.nested-category-tree-wrapper>ul li {
    margin-left: 2vw;
}
nav.nested-category-breadcrumb {
    display: none !important;
}
ul.nested-category-children {
    display: none !important;
}

But first item of category menu 'All Ages' is misaligned - slightly higher.  Can you help?

lobster-impala-satr.squarespace.com

 

Screen Shot 2023-01-15 at 2.23.17 PM.png

What is your site url? We can check problem easier

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...
  • 4 weeks later...

Hello,

 

I am using same code as per below and everything is perfect for me in alignment and category navigation bar is visible in all categories:

/* Show category nav links */
div.nested-category-tree-wrapper {
    display: flex !important;
    float: none !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
}
section.products.collection-content-wrapper.products-list {
    flex-direction: column !important;
    display: flex;
}
.nested-category-tree-wrapper>ul {
    width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
.nested-category-tree-wrapper>ul li {
    margin-left: 2vw;
}
nav.nested-category-breadcrumb {
    display: none !important;
}
ul.nested-category-children {
    display: none !important;
}
li.category-item:first-child a {
    padding-bottom: 0 !important;
}

But the question is does it possible to make category navigation bar also visible inside the selected product item?

 

Below is all categories in shop:

image.thumb.png.a8a798f1df078cd6920e48a8bb7c1ca1.png

Below is inside the selected product item:

image.thumb.png.0230af580c265576c47720962f8529c5.png

 

Site: https://www.ugnesstory.com/parduotuve/kaklo-papuosalai

Many thanks!

Edited by Mindzek
Link to comment
On 2/28/2023 at 8:12 PM, Mindzek said:

Hello,

 

I am using same code as per below and everything is perfect for me in alignment and category navigation bar is visible in all categories:

/* Show category nav links */
div.nested-category-tree-wrapper {
    display: flex !important;
    float: none !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
}
section.products.collection-content-wrapper.products-list {
    flex-direction: column !important;
    display: flex;
}
.nested-category-tree-wrapper>ul {
    width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
.nested-category-tree-wrapper>ul li {
    margin-left: 2vw;
}
nav.nested-category-breadcrumb {
    display: none !important;
}
ul.nested-category-children {
    display: none !important;
}
li.category-item:first-child a {
    padding-bottom: 0 !important;
}

But the question is does it possible to make category navigation bar also visible inside the selected product item?

 

Below is all categories in shop:

image.thumb.png.a8a798f1df078cd6920e48a8bb7c1ca1.png

Below is inside the selected product item:

image.thumb.png.0230af580c265576c47720962f8529c5.png

 

Site: https://www.ugnesstory.com/parduotuve/kaklo-papuosalai

Many thanks!

Hi. yes possible. We will need to use script code to do it. CSS code can't solve it

And when you add new category, you will need to update new code

Do you still want to continue?

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...

Hi there! 

I currently have my store with 5 different categories, but on the same page we can see all the different items listed. I would like to only display the categories, image provided, and have them associated with their own image, so that people can click on them and see all the items in that category rather than have everything on one page. 

Can someone please help? 🙂image.thumb.png.ac10079ba153d3641b6e4891c32c2e78.png

Link to comment
On 3/15/2023 at 9:06 PM, LocoLuxury said:

Hi there! 

I currently have my store with 5 different categories, but on the same page we can see all the different items listed. I would like to only display the categories, image provided, and have them associated with their own image, so that people can click on them and see all the items in that category rather than have everything on one page. 

Can someone please help? 🙂image.thumb.png.ac10079ba153d3641b6e4891c32c2e78.png

Can you share link to this page? We can check easier

(/config is url for site owner)

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
  • 5 months later...
On 5/11/2021 at 11:29 PM, SarahLune said:

Hi ! I used your code and it's working on desktop very well,  but it doesn't seems to be working on mobile for my website.

Here's a picture of what the code does to my menu. I also attached a picture of what I used to have, but I wish to have the directory on all category's page.

A couple weeks ago, I also added a code to have a nested menu on mobile so maybe it's interfering with yours ? I tried removing it, but then the menu is on one line, and I don't like it this way. It's not very user friendly.

I hope I'm making sense. Thank you for your help !

Here's my shop link : https://www.sarahlalune.com/boutique-2 

 

 

Screenshot_20210511-181909.png

Screenshot_20210511-182032.png

Did you sort this? i am having the same problem where the navigation bar goes strange on mobile.

Link to comment
  • 3 weeks later...
On 9/11/2023 at 8:31 AM, cinnamoncat said:

Hi, the categories in my store on mobile are cut off. Thoughts on how to display all the categories on mobile?

Site: dethreads.net

Screen Shot 2023-09-10 at 8.08.52 PM.png

You can use some CSS code like this

@media screen and (max-width: 767px ) {
    .tweak-products-nested-category-type-sidebar .products.collection-content-wrapper .nested-category-children {
        display: flex !important;
    } 
}

 

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
  • 5 months later...

Can anyone help I am having problems with alignment:

 

/* Show category nav links */
div.nested-category-tree-wrapper {
    display: flex !important;
    float: none !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
}
section.products.collection-content-wrapper.products-list {
    flex-direction: column !important;
    display: flex;
}
.nested-category-tree-wrapper>ul {
    width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
.nested-category-tree-wrapper>ul li {
    margin-left: 2vw;
}

 

  

Capture.PNG

Link to comment
On 2/19/2024 at 12:17 AM, Aweilding said:

Can anyone help I am having problems with alignment:

 

/* Show category nav links */
div.nested-category-tree-wrapper {
    display: flex !important;
    float: none !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
}
section.products.collection-content-wrapper.products-list {
    flex-direction: column !important;
    display: flex;
}
.nested-category-tree-wrapper>ul {
    width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
.nested-category-tree-wrapper>ul li {
    margin-left: 2vw;
}

 

  

Capture.PNG

Can you share link to this page?

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
  • 4 weeks later...
  • 2 weeks later...
On 3/19/2024 at 4:50 PM, Baadjou said:

Hello!

 

I'm having the same issue with the categories not being aligned:

https://contrabass-tetra-xb42.squarespace.com/

Password: schinnen

 

Also, is there a way to rename the all category to something else?

Thanks!

The site is expired, you can access this link to extend it

https://contrabass-tetra-xb42.squarespace.com/config/extendtrial

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...

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.