Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Styling drop-down not possible
This topic contains 5 replies, has 2 voices, and was last updated by Ernest Marcinko 1 week, 6 days ago.
- AuthorPosts
- March 15, 2023 at 12:53 pm #41771
Hello!
Unfortunally the support Ticket-System doesn\’t work, so i write you here..
I bought the \”Ajax Search Pro\” and have following problem:
How I can change the background of the dropdown menu in the \”Ajax search pro\”? There is one point in the settings for the Dropdown, but it is ultimately ignored by the mobile phone (iphone) and desktop browser (Mac – firefox/Chrome). Tried to help with CSS but no matter how, this slightly transparent blur background always remains.
Is it a bug? Or is the Dropdown style provided from a local browser/computer?Divi theme is in use.
The page is currently in maintenance mode, so no link, but i can provide Screenshots.
I hope you can help me!
Thanks!Kind regards
Uli NiklausAttachments:
You must be logged in to view attached files.March 15, 2023 at 2:14 pm #41786Hi,
Thank you very much for the details!
Well, it highly depends on the browser and device. Some devices allow more customization, so less, some does not allow anything. Apple devices are especially very problematic, they rarely respect any customization whatsoever.
Usually Windows/Linux Chrome is the most customizable one, and Safari is the least allowing (in my experience).Are these post type, taxonomy or custom field filters? I’m asking because there is a different drop-down layout, which may work better cross devices and has more room for styling.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 15, 2023 at 2:19 pm #41788Thanks for replying!
These are taxonomy..
I tried to find it in the plug-in css files, but had no luck..
March 16, 2023 at 4:13 pm #41809Okay!
Usually overriding with custom CSS is the best way to go, modifying the original CSS files is not going to help, as those are generated dynamically when you change the plugin options.
For taxonomy terms, you should try using the drop-down with search variation: https://i.imgur.com/WAv2VGU.png
That is a custom made script for the drop-downs, and it has a very similar layout for all devices.
Styling it is not easy, but possible via custom CSS:
Best,/* The Container */ .asp_select2-selection, span[class*=asp_select2-selection], .asp_select2-search__field, .asp_select2-search__field::placeholder { background: red !important; color: white !important; } /* The selection */ .asp_s span.asp_select2-container--flat ul li.asp_select2-selection__choice, .asp_sb span.asp_select2-container--flat ul li.asp_select2-selection__choice { color: white; background-color: #ff7272 !important; border: 1px solid #ff7272 !important; } /* Drop down general */ span.asp_select2-container--open .asp_select2-dropdown--below, span.asp_select2-container--open .asp_select2-dropdown--above { background: #9c6a6a; color:#fff; } /* Drop down selected values */ span.asp_select2-container--flat .asp_select2-results__option[aria-selected=true] { background: #b34949; color: #fff; } /* Drop down hovered selection */ span.asp_select2-container--flat .asp_select2-results__option--highlighted[aria-selected] { background: #dc3737 !important; color: #fff; }
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 18, 2023 at 5:11 pm #41871Thanks! I Think that could work.
BUT unfortunally, when i make the setting for the dropdown with search, i’m not able to use the dropdown menu.
I click and it dissapears at the same moment.. normal dropdown works.
please check the video.. any idea?Attachments:
You must be logged in to view attached files.March 19, 2023 at 11:43 am #41880It looks like either a 3rd party script conflict for the mouse hover events or some sort of a misalignment via styling.
I will have to take a look at the issue directly to be able to tell.Can you please share a URL where I can see this? I don’t think I need server access for now.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.