Home › Forums › Basel support forum › Adjust text/background color of product tabs
Adjust text/background color of product tabs
- This topic has 8 replies, 2 voices, and was last updated 4 years, 6 months ago by Elise Noromit.
-
AuthorPosts
-
June 3, 2020 at 1:56 pm #200329
MichielParticipantHi,
I would like to adjust the text and background color of the tabs on product pages: white titles and content on a black background. Also a custom green color (#00ae9d) as underline for the titles of the tabs. Right now it is all black titles/text on a grey background.
How can I adjust this, in custom/global css? Or do I need some kind of tab manager plugin to do this?
Example product page added to private content.
BR,
MichielJune 3, 2020 at 8:02 pm #200410
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
body .single-product-content .product-tabs-wrapper { background-color: black; } body .single-product-content .tabs li.active a { color: white; } body .single-product-content .tabs li a { color: white; }
Best Regards
June 3, 2020 at 8:24 pm #200418
MichielParticipantThank you, that already helped a lot! I am still looking for the following:
Selected tab title is white, with a green (#00ae9d) underline.
Hover over a tab title (currently not active/selected) leads to white tab title without underline.
Not selected tab titles are grey, without an underline.Also regular text (e.g. on second tab) is now black/grey on black background. That should be also white text.
June 3, 2020 at 8:33 pm #200423
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
body .single-product-content .tabs li a:hover{ color: white; }
Best Regards
June 4, 2020 at 6:34 am #200499
MichielParticipantThank you, but that still does not adjust a few things I would like:
– Green (#00ae9d) underline for active tab
– No underline for inactive tabs
– Grey title color for inactive tabs
– White text color for regular text on the tabs, like all the properties on the additional information tab. They are now not readable due to black/grey text on the black background.June 4, 2020 at 8:44 pm #200804
MichielParticipantIs the above mentioned also possible?
June 4, 2020 at 9:40 pm #200815
Elise NoromitMemberHello,
Please replace the code with this one:
body .single-product-content .tabs li a:hover{ color: white; } body .single-product-content .product-tabs-wrapper { background-color: black; } body .single-product-content .tabs li.active a { color: white!important; } body .single-product-content .tabs li a { color: grey; } body .single-product-content .tabs li.active { border-color: #00ae9d; } body .single-product-content .tabs li { border-color: transparent; }
Best Regards
June 5, 2020 at 10:10 am #200963
MichielParticipantThe only thing left now is the text color of the content on a tab. On the second tab with product attributes the text is still grey instead of white.
BR,
MichielJune 5, 2020 at 3:28 pm #201087
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
body .tab-download-container .file_title h4 { color: white; } body .tab-download-container .file_title p { color: white; }
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register