Hi,
I would like to customize the appearance of the sidebar:
Grey backround
Solid border 1px
7px of padding in the top, bottom
5 px of padding in the right and left
This topic has 8 replies, 2 voices, and was last updated 5 years ago ago by Rose Tyler
Hi,
I would like to customize the appearance of the sidebar:
Grey backround
Solid border 1px
7px of padding in the top, bottom
5 px of padding in the right and left
Hi,
Try to add the next code in Theme Options > Theme Custom CSS:
.post-type-archive-product .sidebar-left {
background-color: #e2e2e2;
border: 1px solid black;
padding: 7px 5px 5px 5px;
}
.s_widgets-with-scroll .sidebar .sidebar-widget:not(.sidebar-slider) > ul:after {
background: none;
}
.post-type-archive-product .wc-layered-nav-term a:before,
.post-type-archive-product .wc-layered-nav-rating a:before,
.post-type-archive-product .etheme_widget_brands_filter li a:before,
.post-type-archive-product .etheme-product-status-filter a:before {
border-color: #888888;
}
Regards
Thank you very much Rose.
There is a problem. The sidebar changes the styling just in the principal store page but not in product category pages. I just need this for desktop version as in the mobile version, I have off canvas filters.
Hello,
Change the code to: https://prnt.sc/w29ir3
.tax-product_cat
, place this code in Theme Options > Theme Custom CSS > Custom CSS area for desctop.
Regards
Thank you very much Rose
I am very grateful for your help
It seems to work ok. I have pasted this code:
/* ========= SIDEBAR STYLYING ========== */
.post-type-archive-product .sidebar-left, .tax-product_cat .sidebar-left {
background-color: #fdfdfd;
border: 1px solid lightgrey;
padding: 20px 20px 20px 20px;
}
.s_widgets-with-scroll .sidebar .sidebar-widget:not(.sidebar-slider) > ul:after {
background: none;
}
.post-type-archive-product .tax-product_cat .wc-layered-nav-term a:before,
.post-type-archive-product .tax-product_cat .wc-layered-nav-rating a:before,
.post-type-archive-product .tax-product_cat .etheme_widget_brands_filter li a:before,
.post-type-archive-product .tax-product_cat .etheme-product-status-filter a:before {
border-color: lightgrey;
}
If everything is correct, this topic can be closed
Thank you very much
You’re welcome!
Regards
The issue related to '‘Styling the sidebar’' has been successfully resolved, and the topic is now closed for further responses