popofglitter Posted September 11, 2023 Share Posted September 11, 2023 (edited) Hello, My store has several categories in my store, but on mobile it only looks like I have 4 categories because the scroll isn't obvious. How can I show all the categories at once/remove the need to scroll? I would like to keep the pipe divider ( | ) between categories. Site: https://www.dethreads.net TIA! Edited September 11, 2023 by cinnamoncat clarity Link to comment
Solution Lesum Posted September 11, 2023 Solution Share Posted September 11, 2023 @cinnamoncat You can add this code snippet under Custom CSS panel: @media only screen and (max-width: 575px) .products.collection-content-wrapper .nested-category-children { flex-wrap: wrap !important; overflow: visible !important; } .products.collection-content-wrapper .nested-category-breadcrumb-list-item .nested-category-breadcrumb-link { margin-left: 0 !important; } } Taylor_Design 1 If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
popofglitter Posted September 11, 2023 Author Share Posted September 11, 2023 That worked! Absolute lifesaver! Thank you @Lesum! Lesum 1 Link to comment
popofglitter Posted September 11, 2023 Author Share Posted September 11, 2023 Hi @Lesum quick follow-up question. It appears the spacing of the pipe dividers shifted a little. Is there any way to align space out the divider evenly like in my first screenshot? This is how it appears now: Link to comment
popofglitter Posted September 11, 2023 Author Share Posted September 11, 2023 Nevermind, I changed "margin-left" to "margin-center" and it worked 🙂 Link to comment
Lesum Posted September 11, 2023 Share Posted September 11, 2023 @cinnamoncat Awesome! You can add this code to make make sure all the row start in the same position. @media only screen and (max-width: 575px) { a.nested-category-breadcrumb-link:first-child { margin-left: 1.5vw !important; } } Taylor_Design 1 If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
Lesum Posted September 11, 2023 Share Posted September 11, 2023 22 minutes ago, cinnamoncat said: Nevermind, I changed "margin-left" to "margin-center" and it worked 🙂 "margin-center" is a syntax error (there's no such thing as margin-center in CSS code). Change it to margin-left: 1.5vw !important; popofglitter 1 If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
popofglitter Posted September 11, 2023 Author Share Posted September 11, 2023 That worked as well, thank you! Link to comment
popofglitter Posted September 11, 2023 Author Share Posted September 11, 2023 (edited) One more question...is there any way to wrap the text so there isn't a line break between 'athleisure' and 'children's clothing & accessories' categories like seen in the editor? Edited September 11, 2023 by cinnamoncat typo Link to comment
Lesum Posted September 11, 2023 Share Posted September 11, 2023 @cinnamoncat "Children's Clothing & Accessories" doesn't have enough space to fit in the same line. We have two options to fix the issue. First option is to add the code below to swap the position of "Athleisure" with "Children's Clothing & Accessories" @media screen and (max-width: 575px) li.nested-category-breadcrumb-list-item:nth-child(4) { order: 3 !important; } The second option is to reduce the margin next to each category with the code below: @media only screen and (max-width: 575px) { .products.collection-content-wrapper .nested-category-breadcrumb-list-item .nested-category-breadcrumb-link { margin-left: 1vw !important; margin-right: 1vw !important; } } You can add any of the code blocks to see which one you think works best. If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
popofglitter Posted September 11, 2023 Author Share Posted September 11, 2023 Thank you! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment