Jump to content

Shop categories not showing up on mobile

Recommended Posts

  • Replies 3
  • Views 507
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Try adding to Design > 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;
}
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;
}
}

 

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

@tuanphan Thank you, it kind of worked, but now it's showing up in a weird format and now it is showing two "category" options on the home page of the shop.

The first image is the home page, and the second image is when I selected the category "plants"

Screen Shot 2022-07-03 at 9.58.06 AM.png

Screen Shot 2022-07-03 at 9.58.19 AM.png

Link to comment
On 7/4/2022 at 12:00 AM, benjiplant said:

@tuanphan Thank you, it kind of worked, but now it's showing up in a weird format and now it is showing two "category" options on the home page of the shop.

The first image is the home page, and the second image is when I selected the category "plants"

Screen Shot 2022-07-03 at 9.58.06 AM.png

Screen Shot 2022-07-03 at 9.58.19 AM.png

Remove above code & use this new code

/* 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;
}
h2.nested-category-title.nested-category-title-padding + .nested-category-tree-wrapper ul {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}
}

 

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.