Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Dropdown color
This topic contains 6 replies, has 2 voices, and was last updated by Gee Ranasinha 6 years, 8 months ago.
- AuthorPosts
- January 11, 2017 at 12:12 pm #11555
How do you change the dropdown box color?
January 16, 2017 at 2:48 pm #11602Hi!
On the Theme Options -> Settings icon & Drop-down panel, with the Settings drop-down background gradient option: https://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:
Best,.wpdreams_asp_sc.searchsettings { background: #000000 !important; }
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 17, 2017 at 9:41 am #11617Thanks, 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.
Attachments:
You must be logged in to view attached files.January 17, 2017 at 11:17 am #11620Hi!
I see now. For that use this custom CSS:
div .ajaxsearchpro.searchsettings select { background-color: #ffffff !important; color: #000000 !important; border: initial !important; border-radius: initial !important; box-shadow: none !important; }
The ‘color’ attribute is for the text color.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 17, 2017 at 11:31 am #11621Thanks – this is great.
One thing: How do I center the dropdown set underneath the search bar?
January 17, 2017 at 11:39 am #11622It depends on the exact situation, but this might work:
1. Select the flex layout for the settings box on the Fronted Search Settings panel: https://i.imgur.com/1P92NeE.png
2. And then use this custom CSS to justify the content to the middle:
Best,.searchsettings form { align-items: center; justify-content: center; }
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 18, 2017 at 10:41 am #11638Perfect! Thank you.
- AuthorPosts
You must be logged in to reply to this topic.