smoman Posted April 8, 2021 Posted April 8, 2021 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; } }
tuanphan Posted April 12, 2021 Posted April 12, 2021 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!)
smoman Posted April 12, 2021 Author Posted April 12, 2021 @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: On main shop page With 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.
tuanphan Posted April 14, 2021 Posted April 14, 2021 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: On main shop page With 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!)
smoman Posted April 15, 2021 Author Posted April 15, 2021 @tuanphan that did the trick! Thanks so much! Is there a way to have it show up on product pages as well?
jessiejay9753276 Posted March 1 Posted March 1 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
tuanphan Posted March 3 Posted March 3 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!)
jessiejay9753276 Posted March 24 Posted March 24 @tuanphan thanks for coming back to me have done exactly this and still the same issue
tuanphan Posted March 26 Posted March 26 On 3/25/2024 at 4:29 AM, jessiejay9753276 said: @tuanphan thanks for coming back to me have done exactly this and still the same issue You can add & Keep the code, I can check it again easier 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment