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

Display settings only when settings shortcode is present

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Display settings only when settings shortcode is present

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25031
    ssoulless45ssoulless45
    Participant

    Hello, Im using a shortcode to display search settings on sidebar however my homepage and many other pages do not have that sidebar, so when I go to other pages the search settings show below the search bar which breaks my theme layout. I would like to know how to show search settings only when the Custom Settings position shortcode is present on the page.

    #25043
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Based on your design, I think custom CSS would be the easiest solution. The search is within a distinctive container from the theme, so using this should do the trick:

    .product-extra-search .asp_sb {
       display: none !important;
    }
    #25050
    ssoulless45ssoulless45
    Participant

    Alright, however having a lot of unnecessary dom elements in the page is not good, I would like to request this feature, if the search settings shortcode is not present then do not show it.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.