Hide frontend search settings on mobile without forcing hovering

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 mordego83 2 years, 1 month ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #31717
    mordego83
    mordego83
    Participant

    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!!

    #31719
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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 :)


    #31722
    mordego83
    mordego83
    Participant

    Hi 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,
    Brian

    #31723
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Unfortunately 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 :)


    #31724
    mordego83
    mordego83
    Participant

    Dear Ernest,

    That would be most helpful! Thanks.

    Brian

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.