This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12171
    kamaltyagikamaltyagi
    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 MarcinkoErnest Marcinko
    Keymaster

    Hi!

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

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

    This should hopefully do the trick 🙂

    #12176
    kamaltyagikamaltyagi
    Participant

    Yes! That works just fine.

    Thanks again.

    #12177
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Hiding the search widget on a specific page’ is closed to new replies.