- This topic has 6 replies, 2 voices, and was last updated 7 years, 8 months ago by Gee Ranasinha.
-
AuthorPosts
-
January 11, 2017 at 12:12 pm #11555Gee RanasinhaParticipant
How do you change the dropdown box color?
January 16, 2017 at 2:48 pm #11602Ernest MarcinkoKeymasterHi!
On the Theme Options -> Settings icon & Drop-down panel, with the Settings drop-down background gradient option: http://i.imgur.com/6VOqg6x.png
If you use the block layout for the drop-down, then the color is inherited from the theme, and can only be changed via custom CSS, like so:
[html].wpdreams_asp_sc.searchsettings {
background: #000000 !important;
}[/html]January 17, 2017 at 9:41 am #11617Gee RanasinhaParticipantThanks, but that changes the color of the background element – not the dropdown button color.
I would like to change the color of the actual button (see attachment).
I would also like to increase font size of dropdown titles, as well as center the set of 4 buttons.
Thanks in advance.
January 17, 2017 at 11:17 am #11620Ernest MarcinkoKeymasterHi!
I see now. For that use this custom CSS:
[html]div .ajaxsearchpro.searchsettings select {
background-color: #ffffff !important;
color: #000000 !important;
border: initial !important;
border-radius: initial !important;
box-shadow: none !important;
}[/html]The ‘color’ attribute is for the text color.
January 17, 2017 at 11:31 am #11621Gee RanasinhaParticipantThanks – this is great.
One thing: How do I center the dropdown set underneath the search bar?
January 17, 2017 at 11:39 am #11622Ernest MarcinkoKeymasterIt depends on the exact situation, but this might work:
1. Select the flex layout for the settings box on the Fronted Search Settings panel: http://i.imgur.com/1P92NeE.png
2. And then use this custom CSS to justify the content to the middle:
[html].searchsettings form {
align-items: center;
justify-content: center;
}[/html]January 18, 2017 at 10:41 am #11638Gee RanasinhaParticipantPerfect! Thank you.
-
AuthorPosts
- You must be logged in to reply to this topic.