Hiding the search widget on a specific page

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Hiding the search widget on a specific page

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 7 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12171
    kamaltyagi
    kamaltyagi
    Participant

    Another hopefully small query here.

    I have the ajax widget setup in my footer which shows up on all pages of my site. For my homepage, however, I would like to hide the display of the search function from the header (I will hide the whole header actually). Is there a custom CSS snipet I can add to hide the search function just on a specific page, in my case .page-id-14159?

    Thanks again for your time.

    #12175
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    Yes, it is actually possible with a custom CSS snippet. I’ve tested the following snippet:

    .page-id-14159 .asp-try,
    .page-id-14159 .ajaxsearchpro,
    .page-id-14159 .wpdreams_asp_sc {
        display: none !important;
    }

    This should hopefully do the trick 🙂

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #12176
    kamaltyagi
    kamaltyagi
    Participant

    Yes! That works just fine.

    Thanks again.

    #12177
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


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

The topic ‘Hiding the search widget on a specific page’ is closed to new replies.