This topic has 7 replies, 3 voices, and was last updated 8 months, 1 weeks ago ago by Andrew Mitchell
Hello,
in this topic you have helped me to make the filters also display when you click on the filters at the top (image 1):
https://www.8theme.com/topic/displaying-filters-after-clicking-on-the-top-filters/#post-387507
But I have another problem, I would like to get an effect like in the 2nd picture.
I tried to create a css, but unfortunately with poor results:
.open-filters-btn {
width: 100%;
box-sizing: border-box;
display: block;
}
.open-filters-btn a {
display: block;
padding: 10px;
background-color: #cccccc;
border: 1px solid #333;
text-align: center;
color: white;
text-decoration: none;
cursor: pointer;
}
.woocommerce-ordering {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
}
.woocommerce-ordering select {
width: 100%;
padding: 10px;
background-color: #cccccc;
border: 1px solid #333;
}
In order for the “filters” at the top to display properly I need a shop widget sidebar, but when I add an element there, a blank space appears that expands and collapses
Hi @Kombajn88,
Please also add this custom CSS:
body .shop-filters.widget-columns-3.filters-opened {
display: none;
}
body .filter-wrap {
margin-bottom: 0;
border: 1px solid var(--et_border-color);
border-bottom: 0;
}
body form.woocommerce-ordering {
width: 50%;
}
body .woocommerce-ordering select {
border: none;
border-left: 1px solid var(--et_border-color);
}
Hope it helps!
Thank you so much for all the help I have received from you in all the topics, I don’t even know how to express my appreciation and thanks for the immense help received.
Certainly the help department here deserves a raise.
P.S 5 stars given as if what.
I discovered yet a small problem with the function of this code.
In mobile mode the code works great, but in tablet and laptop mode it pops up blank when clicked (this is due to this: shop filters–> text block).
Is there any way to block it from popping up?
In laptop mode I used the code:
.open-filters-btn {
display: none !important;
}
but it only removed the filters, without removing that empty space
Hi @Kombajn88,
Please also add this custom CSS:
.shop-filters.widget-columns-3 {
display: none;
}
Best Regards,
The 8Theme Team
Dear Kombajn88,
As we continue our mission to exceed expectations, your insights become increasingly valuable. Could we, with all due respect, request your thoughtful feedback by giving our theme a deserved 5-star rating on ThemeForest?
Click here to share your valuable perspective: https://themeforest.net/downloads
Your time and trust are highly appreciated!
Best Regards,
The 8Theme Team
The issue related to '‘Css adjusting filters and sorting on the store page’' has been successfully resolved, and the topic is now closed for further responses