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 7 years, 1 month ago.
- AuthorPosts
- March 24, 2017 at 11:00 pm #12472
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.
March 27, 2017 at 11:19 am #12489Hi,
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 :)
March 28, 2017 at 7:57 am #12505Great. That worked perfect.
Thanks again for your kind attention.
March 28, 2017 at 9:15 am #12506You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
The topic ‘Hiding one widget but not another’ is closed to new replies.