Move Category Product sidebar to top for mobile
-
I have set up a product category sidebar on the woocommerce category page. I have two widgets; one is a dropdown version of the category list. These are controlled by media queries.
However, I’m having a problem moving the sidebar to above the main content. I have found about three or four different CSS snippets online, but none have worked.
One friend suggested something that works to move the menu, but messes up the desktop alignment of the main content area.I am at a loss…
/***WC Product category menu to top on mobile***/
#content-area {
display: -webkit-box;
display: -moz-box;
display: box;-webkit-box-orient: vertical;
-moz-box-orient: vertical;
box-orient: vertical;
}
#sidebar {
-webkit-box-ordinal-group: 2;
-moz-box-ordinal-group: 2;
box-ordinal-group: 2;
}
#left-area {
-webkit-box-ordinal-group: 3;
-moz-box-ordinal-group: 3;
box-ordinal-group: 3;
}@media (min-width: 768px) {
#woocommerce_product_categories-5 {display:none;}
}
@media (max-width: 767px) {
#woocommerce_product_categories-4 {display:none;}
}The page I need help with: [log in to see the link]
- The topic ‘Move Category Product sidebar to top for mobile’ is closed to new replies.