Site logo

Archived topic

Slideout filters

9 replies · Started by roadlink on February 6, 2021

Viewing posts 1–10 of 10

Hello,

I have filters on slideout menu but seems weird.
Any suggestion?

Thanks in advance.

https://prnt.sc/yk64of

.slideout-widget.woocommerce ul li:not(.chosen):not(.select2-search) {
    line-height: 2em;
    display: grid;
    grid-template-columns: 0 90% 10%;
}
.slideout-navigation .slideout-widget ul.product-categories li {
    grid-template-columns: 90% 10%;
}
.slideout-widget {
    border-top: 1px solid #ccc;
    padding-top: 1em;
}
.woocommerce-widget-layered-nav .select2-container--default .select2-search--inline .select2-search__field {
    width: unset !important;
	}
.select2-container--open {
    z-index: 999999;
}

Hello Ying,
I paste URL in private section.
When I enter categories, filters starts to shown.

Are you saying they are not vertical aligned in your screenshot? try this CSS:

.main-navigation.slideout-navigation .inside-navigation {
    align-items: flex-start;
}

Let me know :)

Dear Ying,

Yes, attribute filters are show not aligned.
I have added your code but no luck.

Try to add this CSS as well:

body .slideout-widget.woocommerce ul li:not(.chosen):not(.select2-search) {
    display: block;
}

Hello Ying,
Looks much nicer now but how I can put each attiributes under each other?
https://prnt.sc/yr74o6

Add this:

.main-navigation.slideout-navigation .inside-navigation {
    display: block;
}

Let me know :)

Worked perfect, thanks.
In case some other needs codes for Prime demo here are the codes for off canvas menu.


/* GP Amazon Prime Slideout CSS */
.woocommerce-widget-layered-nav .select2-container--default .select2-search--inline .select2-search__field {
    width: unset !important;
	}
.select2-container--open {
    z-index: 999999;
}
.slideout-navigation .woocommerce-widget-layered-nav-list__item a {
    display: inline-block;
}
.main-navigation.slideout-navigation .inside-navigation {
    align-items: flex-start;
	  display: block;
}
body .slideout-widget.woocommerce ul li:not(.chosen):not(.select2-search) {
    display: block;
}

You are welcome and thanks for sharing with us :)

This archived topic is closed to new replies.