Jsartor Posted May 30, 2023 Posted May 30, 2023 Hello, I've added this custom code to make the product menu visible on the shop page, but when I go to mobile view, the categories look funny. Is it possible to stack them centered on mobile, but have it as is on desktop. Custom CSS currently in use: /* Show category nav links */ 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; } li.category-item:first-child a { padding-bottom: 0 !important; }
Solution tuanphan Posted June 2, 2023 Solution Posted June 2, 2023 Change this code .nested-category-tree-wrapper>ul { width: 100% !important; display: flex; justify-content: center; align-items: center; } to this .nested-category-tree-wrapper>ul { width: 100% !important; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; } If it doesn't work, please share link to your site, we can check 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