Hiding one widget but not another

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Hiding one widget but not another

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
  • #12472
    kamaltyagi
    kamaltyagi
    Participant

    I have another query.

    Previous you gave me this CSS to hide my absolute position compact box search widget from a particular page:

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

    On this page I want to hide it, my home page, I want to display another ajax search widget down near the bottom of the site, but although I put in the shortcode on the site, the above CSS blocks both my pinned widget for my header (on all other pages) and this widget I do want to display on my homepage.

    Is there a CSS snipet to just block the display of my header widget but not all ajax widgets from a particular page?

    Thanks for your attention in this regard.

    #12489
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    The problem with that custom CSS you pasted is that it will hide all froms on every page. It needs a bit tweaking to hide the header on the front-page, but not on the other ones:

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

    This will hide the header search instance on the front page only.

    Best,
    Ernest Marcinko

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


    #12505
    kamaltyagi
    kamaltyagi
    Participant

    Great. That worked perfect.

    Thanks again for your kind attention.

    #12506
    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 one widget but not another’ is closed to new replies.