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

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
2 years, 1 month ago.

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

    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

    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;
    }
    Best,
    Ernest Marcinko

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


    #25050

    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.