This topic has 14 replies, 2 voices, and was last updated 4 weeks ago ago by Rose Tyler
Hi there,
May I know how to customize the Widget styles, for example the page I attached has a widget sidebar with menus, I am not sure how to customize the font, font size and color, also the alignment, I want to leave some space to the left.
Another question is, I want to make some margin space on the left and right, for all single pages (not main page, not product categories and product pages) is there an easier way to do it? or I have to set every page one by one?
Hello,
Thank you for reaching out to us.
To customize the widget styles, such as font, font size, color, and alignment, you can use custom CSS code, for example, add the next code in Theme Options > Theme Custom CSS > Global:
.sidebar-position-left .sidebar-widget a, .sidebar-position-left .menu-element.menu-list .menu li ul a {
font-size: 16px; /* Adjust the font size */
color: #333; /* Adjust the font color */
-webkit-text-fill-color: #333;
text-align: left; /* Adjust the alignment */
padding-left: 10px; /* Add space to the left */
}
Regarding your second question about adding margin space to the left and right for all single pages, you can apply a global CSS rule to target all single pages at once, rather than setting it individually for each page. You can use the following CSS:
.container.content-page, .breadcrumb-trail .page-heading {
padding-left: 30px;
padding-right: 30px;
}
Please let us know if you need further assistance.
Best Regards,
8Theme’s Team
Hi, for the sidebar, your code only applies to the sub menu items, please check my screenshot.
Hello,
Please change the code to:
.sidebar-position-left .sidebar-widget a, .sidebar-position-left .menu-element.menu-list .menu li ul a {
font-size: 14px !important;
color: #333;
-webkit-text-fill-color: #242222;
padding-left: 5px;
}
Best Regards,
8Theme’s Team
Hi, the padding-left: still only change the padding for the sub-menu side bar. See the link attached, I tried with 25px so it is obvious.
It works well, thank you!
May I know what code I should add if I want to cutomize the SUB-menu’s font size and weight?
Hello,
You’re welcome!
.sidebar-position-left .menu-list .menu .nav-sublist-dropdown ul > li a {
font-size: 10px !important;
font-weight: 900;
}
Best Regards,
8Theme’s Team
THanks!
Last question, I tried to search about hiding specific Widget (like this sub menu) on mobile devices, not sure how to do it? And if there is also an option to hide all the sidebars on mobile device?
Hello,
Custom CSS code can be used, for example:
@media only screen and (max-width: 480px) {
.sidebar-mobile-bottom .sidebar {
display: none;
}
}
Warm Regards,
The 8Theme Team
Thanks, this works great.
Another question, I find that when I add “product categories” widget as sidebar on categories page,
1. there is no option to remove the “uncategorized” category
2. how can I only display some of the categories and also set sequence which categories I want to display?
Hello,
1/ Please read this article – https://www.8theme.com/documentation/xstore/troubleshooting/how-to-remove-the-uncategorized-category-from-wordpress/
2/ You can edit these settings – https://prnt.sc/j2QacEalq4K1
Warm Regards,
The 8Theme Team
Thank you for your reply, for No.2
1) how do I hide some categories even they are not empty?
2) how do I change the display sequence of the categories?
Hello,
1/ By default, there are no such settings.
What exactly categories do you want to hide? Custom CSS code can be used, for example:
.etheme_sidebar-widgets-count-aside .cat-item-949 {
display: none !important;
}
2/ https://prnt.sc/sy7xGIhKWmxv
You can edit product categories under Dashboard > Product > Categories, where you can set the category order according to your needs. For a better reference, please watch this video: https://gyazo.com/1113977f1bea8e9e7b3434c47a452b8e
Warm Regards,
The 8Theme Team
You must be logged in to reply to this topic.Log in/Sign up