Jump to content

Shop categories not showing up on mobile

Recommended Posts

Posted

Site URL: https://www.benjiplant.com

The categories of my shop do not appear for mobile devices once I select the category I want to go to. For example, the first picture is of the shop home page and the second photo is after I click "plants". How do I make it so the categories appear at the top?

Screen Shot 2022-06-30 at 3.22.06 PM.png

Screen Shot 2022-06-30 at 3.22.20 PM.png

  • Replies 3
  • Views 703
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted

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!)

Posted

@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

Posted
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!)

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.