Home › Forums › WoodMart support forum › Style Scrollbars
Style Scrollbars
- This topic has 7 replies, 2 voices, and was last updated 4 years, 6 months ago by Elise Noromit.
-
AuthorPosts
-
May 20, 2020 at 4:53 pm #196467
olgaonline2020ParticipantHello,
I am using an id selector to add a scrollbar to an element:
#menuscrollbar{
height:320px;
overflow:scroll;
overflow-x:hidden;
}How can style the scrollbar to the style of the scrollbars of the theme? The scrollbar created by the css code shown above is the browser’s scrollbar..
Thank you
May 20, 2020 at 9:26 pm #196515
Elise NoromitMemberHello,
Please provide the page URL and screen of the block which needs the scroll bar, I will provide custom CSS.
Best Regards
May 21, 2020 at 11:07 am #196679
olgaonline2020ParticipantHi,
I would like to style the scrollbar at 2 locations:
Location 1) I have added id #menuscrollbar for visual composer element ‘WP Custom Menu’ for an HTML block that is set for a product category element on navigation menu.
I have added this css code already:
#menuscrollbar{ height:200px; overflow:auto; overflow-x:hidden; }
—-
Location 2) WP Product Categories widget on shop page sidebar:
I have added this css code already:
#woocommerce_product_categories-1 .product-categories{ height:300px; overflow:auto; overflow-x:hidden; }
I added the following css code I found in forum that does not style the scrollbar:
#woocommerce_product_categories-1 .product-categories::-webkit-scrollbar { width: 3px; } #woocommerce_product_categories-1 .product-categories::-webkit-scrollbar-track { background-color: rgba(0,0,0,.15); } #woocommerce_product_categories-1 .product-categories::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,.25); } #woocommerce_product_categories-1 .product-categories::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,.25); }
Please check Private content for URL and locations of scrollbars.
Thank youMay 21, 2020 at 8:20 pm #196841
Elise NoromitMemberHello,
Please provide the site admin access to the private area and remove your custom CSS and classes.
Best Regards
May 21, 2020 at 8:49 pm #196857
olgaonline2020ParticipantPlease check Private content.
May 22, 2020 at 12:08 pm #196986
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
body .widget_nav_menu ul li.menu-item-6831{ height:100px; overflow-y:auto; overflow-x:hidden; } body .widget_nav_menu ul li.menu-item-6831::-webkit-scrollbar{ width: 3px; } body .widget_nav_menu ul li.menu-item-6831::-webkit-scrollbar-track { background-color: rgba(0,0,0,.15); } body .widget_nav_menu ul li.menu-item-6831::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,.25); } body .widget_nav_menu ul li.menu-item-6831::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,.25); }
Best Regards
May 22, 2020 at 1:25 pm #197019
olgaonline2020ParticipantPlease read private content.
Is this added twice?
body .widget_nav_menu ul li.menu-item-6831::-webkit-scrollbar-thumb {
background-color: rgba(0,0,0,.25);
}May 22, 2020 at 8:49 pm #197112
Elise NoromitMemberHello,
I have deleted public screenshot
Yes, seems I have duplicated the style please remove the duplicate.
The option to customize the scroll is provided in Webkit (Chrome) only, there is no option in FireFox and our theme does not influence that.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register