Jump to content

Shop navigation disappears while in category on mobile

Recommended Posts

Posted

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

I have an issue I am hoping someone will understand and help me with. 

On mobile, when I go to shop and click a product category, the category navigation disappears. In order to see them again I have to select all in the breadcrumbs and start over. 

What I would like, for example, would be for a person to navigate from one category to another with the category navigation visible on all mobile shop pages, similar to how it is done on desktop. 

ANOTHER question I have, on mobile my logo looks very small. I want to make it look bigger without forcing a left/right scroll. The only way I can think of is having the hamburger icon and cart icon above or below the logo. Is this possible? 

Here is the current code I have in my site: 

/* 2 Column Product Grid */
@media only screen and (max-width:640px) {
.products .list-grid {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.products .grid-item {
width: 48%;
}
}

/*remove space above gallery mobile only*/
@media only screen and (max-width:767px) {
.homepage #page section:first-child {
    min-height: unset;
    height: 80vh;
}
}

 

Screen Shot 2021-04-08 at 1.24.53 PM.png

  • Replies 8
  • Views 3.1k
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Q1. Try adding to Design > custom CSS

/* Show category nav links */
@media screen and (max-width:767px) {
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;
}}

Q2. If make logo bigger, it will overlap burger & cart icon.The solution is make 2 row

Row 1 is logo

Row 2 is burger + cart icon

What do you think?

 

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 that worked! Only it makes navigation look wonky. Not like how it looks when I am on the main shop page. Heres an example:

636013548_ScreenShot2021-04-12at12_58_52PM.png.34dfbff733e7f5e099731ad4f5ea7cfc.pngOn main shop page

1984480310_ScreenShot2021-04-12at12_58_29PM.png.8d0042aaaf517ebd3b3cf5e5ca9ba969.pngWith code

Is there any way to make it look like the navigation on the main shop page on all categories on mobile?

In regards to question 2: Yes! I would love to see how that looks with row 1 being the burger icon and row 2 being the logo, and vise versa.

Posted
On 4/13/2021 at 12:03 AM, smoman said:

@tuanphan that worked! Only it makes navigation look wonky. Not like how it looks when I am on the main shop page. Heres an example:

636013548_ScreenShot2021-04-12at12_58_52PM.png.34dfbff733e7f5e099731ad4f5ea7cfc.pngOn main shop page

1984480310_ScreenShot2021-04-12at12_58_29PM.png.8d0042aaaf517ebd3b3cf5e5ca9ba969.pngWith code

Is there any way to make it look like the navigation on the main shop page on all categories on mobile?

In regards to question 2: Yes! I would love to see how that looks with row 1 being the burger icon and row 2 being the logo, and vise versa.

Use new code

/* Show category nav links */
@media screen and (max-width:767px) {
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 {padding-top: 44px;padding-bottom: 30px;margin-bottom: 0;flex-wrap: nowrap;overflow-x: scroll;text-align: center;display: flex;flex-direction: row;align-content: center;position: relative;justify-content: start;}
.nested-category-tree-wrapper>ul li {
    margin-left: 2vw;
    flex: 0 0 auto;
}
nav.nested-category-breadcrumb {
    display: none !important;
}
ul.nested-category-children {
    display: none !important;
}
.products.collection-content-wrapper .nested-category-tree-wrapper>ul>li:first-child a {
    padding-top: 5px;
}
}

 

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

  • 2 years later...
Posted
On 3/1/2024 at 3:10 PM, jessiejay9753276 said:

I have tried this code and it makes no difference to my site on mobile version https://www.authored.co.nz/store/birth

once you click into a category they all disappear

Use this new code. Note: Add code to Website Tools > CUSTOM CSS (DO NOT ADD CODE TO CODE INJECTION)

/* Show category nav links */
@media screen and (max-width:767px) {
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;
}
    div.nested-category-tree-wrapper ul {
        flex-wrap: wrap;
    }
.nested-category-tree-wrapper>ul {padding-top: 44px;padding-bottom: 30px;margin-bottom: 0;flex-wrap: nowrap;overflow-x: scroll;text-align: center;display: flex;flex-direction: row;align-content: center;position: relative;justify-content: start;}
.nested-category-tree-wrapper>ul li {
    margin-left: 2vw;
    flex: 0 0 auto;
}
nav.nested-category-breadcrumb {
    display: none !important;
}
ul.nested-category-children {
    display: none !important;
}
.products.collection-content-wrapper .nested-category-tree-wrapper>ul>li:first-child a {
    padding-top: 5px;
}
}

 

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

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