benjiplant Posted June 30, 2022 Posted June 30, 2022 Site URL: https://www.benjiplant.com The categories of my shop do not appear for mobile devices once I select the category I want to go to. For example, the first picture is of the shop home page and the second photo is after I click "plants". How do I make it so the categories appear at the top?
tuanphan Posted July 3, 2022 Posted July 3, 2022 Try adding to Design > Custom CSS /* show category nav on mobile */ @media screen and (max-width:767px) { .nested-category-tree-wrapper { display: flex !important; width: 100% !important; min-width: unset !important; max-width: unset !important; } section.products.collection-content-wrapper.products-list { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; } } 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!)
benjiplant Posted July 3, 2022 Author Posted July 3, 2022 @tuanphan Thank you, it kind of worked, but now it's showing up in a weird format and now it is showing two "category" options on the home page of the shop. The first image is the home page, and the second image is when I selected the category "plants"
tuanphan Posted July 7, 2022 Posted July 7, 2022 On 7/4/2022 at 12:00 AM, benjiplant said: @tuanphan Thank you, it kind of worked, but now it's showing up in a weird format and now it is showing two "category" options on the home page of the shop. The first image is the home page, and the second image is when I selected the category "plants" Remove above code & use this new code /* Show category Link (ver 3 */ @media screen and (max-width:767px) { h2.nested-category-title.nested-category-title-padding + .nested-category-tree-wrapper { display: flex; float: none !important; max-width: unset !important; min-width: unset !important; width: 100% !important; } h2.nested-category-title.nested-category-title-padding + .nested-category-tree-wrapper ul { display: flex; align-items: center; width: 100%; justify-content: space-between; } } 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