Jump to content

My product categories disappear when on the category page

Recommended Posts

Hello, I am having issues with my product categories showing up on mobile. It works fine on a desktop, but I'm having issues with mobile. 

On the home page, the category list is visible but disappears after I select a category. How can I make it so product categories are visible on all category pages? 

My website: https://benjiplant.com

 

Screenshot 2024-03-11 at 2.59.39 PM.png

Screenshot 2024-03-11 at 3.00.01 PM.png

Link to comment
  • Replies 1
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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

/* show category nav on mobile */
@media screen and (max-width:767px) {
.nested-category-tree-wrapper {
    display: flex !important;
    width: 100% !important;
    min-width: unset !important;
    max-width: unset !important;
}
    .nested-category-tree-wrapper>ul {
        width: 100% !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
section.products.collection-content-wrapper.products-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}
    .nested-category-tree-wrapper>ul a {
        margin-bottom: 0px !important;
        padding-bottom: 0px !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

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.