Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Hide frontend search settings on mobile without forcing hovering
This topic contains 4 replies, has 2 voices, and was last updated by mordego83 2 years, 1 month ago.
- AuthorPosts
- February 21, 2021 at 2:40 pm #31717
Basically I would like the frontend search settings to display by default on desktop and hide by default on mobile. The only way I could find to do this is the “force hover settings layout on mobile devices” option. However forcing hover disrupts the layout of the page. I am wondering if there is a way to “force state: hidden settings” without having to “force hover”. Please advise, many thanks!!
February 22, 2021 at 9:30 am #31719Hi,
Sure, I recommend using a custom CSS:
@media only screen and (max-width: 480px) { .asp_s, .asp_sb { display: none !important; } }
This should hide the settings on screen resolutions lower than 480px. You can change that of course to whatever width you desire.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
February 22, 2021 at 11:17 am #31722Hi Ernest,
Thanks for the quick reply. Unfortunately this totally removes the option to display settings on mobile. I want it to be hidden by default but for users to still have the option to open it if they want.
Kind Regards,
BrianFebruary 22, 2021 at 11:22 am #31723Unfortunately I’m afraid that is not possible then. If you want I can add this to the upcoming features list though.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
February 22, 2021 at 11:25 am #31724Dear Ernest,
That would be most helpful! Thanks.
Brian
- AuthorPosts
You must be logged in to reply to this topic.