- This topic has 15 replies, 3 voices, and was last updated 4 years, 4 months ago by David.
-
AuthorPosts
-
November 6, 2019 at 5:58 am #1054744ustar
Hi, There!
I added widget with sizes to Off Canvas panel.
But it looks very strange.
Widgets like this works on shop and category pages, you can see (for sizes, colors, seasons and brands) and i’d like to see the same style in Off Canvas panel. Is it possible?Regards, Sergey.
November 6, 2019 at 6:19 am #1054760ustarAlso i’d like to add widget “Active filters” on the panel.
November 6, 2019 at 6:52 am #1054918DavidStaffCustomer SupportHi there,
try this CSS:
.slideout-navigation .slideout-widget .woocommerce-widget-layered-nav-list { display: flex; flex-wrap: wrap; } .slideout-navigation .slideout-widget .woocommerce-widget-layered-nav-list .woocommerce-widget-layered-nav-list__item { width: 40px; height: 40px; justify-content: center; align-items: center; } .slideout-navigation .slideout-widget .woocommerce-widget-layered-nav-list p { margin-top: 2em; }
November 7, 2019 at 1:08 am #1055571ustarHi, David!
Thanks for your answer and the code.
Works very good for “sizes” widget.But i have 4 types of widgets.
– numbers in circles (sizes) – works very well!
– circles woth colors (colors) – wit no links now. Impossible to click.
– simple list of attributes (material, collection etc.) – collapsed too close now
– buttons with images (season, brand) – wit no links now. Impossible to click.Is there any way to make them all work?
Regards, Sergey.
November 7, 2019 at 2:51 am #1055639DavidStaffCustomer SupportCan you disable the cache/optimization plugin you’re using
November 15, 2019 at 3:17 am #1063786ustarHi, David!
This is without caching plugin.
Now activated:
GP Premium
HappyForms
STWooSwatches
WooCommerce
WooCommerce Pay for Payment
Woocommerce seo filter url
WP Google Maps
Yoast SEO
Zásilkovna Shipping MethodRegards, Sergey.
November 18, 2019 at 2:23 pm #1066890ustarHi, David!
Do you have any news?
Regards, Sergey.
November 18, 2019 at 3:58 pm #1066940TomLead DeveloperLead DeveloperHi there,
Sorry, this slipped through somehow!
Is there an example of these buttons working normally somewhere? Maybe in a regular widget area on the site? I’m not seeing how the CSS David provided would stop the links from working.
Let me know 🙂
November 19, 2019 at 12:42 am #1067125ustarHi Tom!
Thanks for your answer!
The code introduced by David helped for the widget with sizes. Before the changes, they were arranged in one vertical line and looked terrible. So the code from David solved the problem only with displaying the size widget in the off-canvas menu and did’t affect on other issues.
I will try to explain again in detail:I have 4 types of widgets.
– numbers in circles (sizes) – works very well!
– circles with colors (colors) – wit no links now. Not clickable now.
– simple list of attributes (gender, material, collection etc.) – collapsed too close to each other. It looks as if the area of ​​this widget contains a table (I think 5 columns), but the columns are so small that there is not enough space for words.
– buttons with images (season, brand) – wit no links now. Not clickable now.These widgets in large desktop mode works in the sidebar menu on pages like:
u-star.cz/boty/
u-star.cz/obleceni/
u-star.cz/nove/Now I have added all possible product filter widgets to the off-canvas menu for clarity.
Regards, Sergey.
November 19, 2019 at 6:31 am #1067371DavidStaffCustomer SupportTry this CSS:
.woocommerce .slideout-navigation .woocommerce-widget-layered-nav-list .woocommerce-widget-layered-nav-list__item a { display: inline-block; flex: 1; line-height: 2em; padding: 25px; }
November 19, 2019 at 2:48 pm #1067815ustarHi, David!
Almost, almost perfect.
Everethyng works fine except widgets with simple text links.– simple list of attributes (PohlavĂ, Edice, Materiál, StĹ™ich etc.) – collapsed too close to each other. It looks as if the area of ​​this widget contains a table (I think 5 columns), but the columns are so small that there is not enough space for words.
Most of them like example on page:
ustar2.sitedistrict.com/obleceni/Regards, Sergey.
November 19, 2019 at 4:04 pm #1067875DavidStaffCustomer SupportAnd this CSS to override that problem:
.slideout-navigation .slideout-widget .pohlavi { display: block !important; }
November 20, 2019 at 5:02 am #1068296ustarThis helped arrange the elements (filter values) with the filter values ​​vertically. That is, the table cells are arranged vertically. But the width of the cells has not changed. And if the text is large enough, it does not fit on one line in a cell.
I added a cell width to your code, for example:
.slideout-navigation .slideout-widget .material {
display: block! important;
width: 200px;
}
But it did not help.
These are still cells with a width equal to one word.If I change the cell width
.slideout-navigation .slideout-widget .woocommerce-widget-layered-nav-list .woocommerce-widget-layered-nav-list__item {
width: 100%;or
.slideout-navigation .slideout-widget .woocommerce-widget-layered-nav-list .woocommerce-widget-layered-nav-list__item {
width: 200 px;then all such elements are changed, including sizes, but this is wrong. I want to change the width for filter values ​​only in text widgets.
In addition, I have added your code for each text widget. And of course, this greatly increases the css file …
Is it possible to apply the same style to a group of widgets to shorten the css code?November 20, 2019 at 9:55 am #1068783DavidStaffCustomer SupportRemove all the CSS related to the slideout widgets and try this:
.slideout-navigation .slideout-widget .woocommerce-widget-layered-nav-list.velikost, .slideout-navigation .slideout-widget .woocommerce-widget-layered-nav-list.barva, .slideout-navigation .slideout-widget .woocommerce-widget-layered-nav-list.sezona { display: flex; flex-wrap: wrap; } .slideout-navigation .slideout-widget .woocommerce-widget-layered-nav-list.velikost .woocommerce-widget-layered-nav-list__item, .slideout-navigation .slideout-widget .woocommerce-widget-layered-nav-list.barva .woocommerce-widget-layered-nav-list__item, .slideout-navigation .slideout-widget .woocommerce-widget-layered-nav-list.sezona .woocommerce-widget-layered-nav-list__item { width: 40px; height: 40px; justify-content: center; align-items: center; } .woocommerce .woocommerce-widget-layered-nav-list .woocommerce-widget-layered-nav-list__item a { width: 100%; height: 100%; }
November 24, 2019 at 11:49 am #1075116ustarhi, David!
Thanks, code works after a little modifications.
I’m really happy with this now ))
Regards, Sergey.
-
AuthorPosts
- You must be logged in to reply to this topic.