Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Shop navigation disappears while in category on mobile


smoman

Question

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

Link to post
  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

4 answers to this question

Recommended Posts

  • 0

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?

 

Link to post
  • 0

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

Link to post
  • 0
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;
}
}

 

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...