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

Only able to use one search on site

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25620
    lukehall92lukehall92
    Participant

    Hi,

    I have a site based on the Avada theme. I have 2 individual searches created on the site (White Papers & Blog) each is set up by using the appropriate Seetings & Results shortcodes on its respective page, but I can only use the search which is set to replace the default search bar.
    If “Replace the default theme search with” is set to “NONE” then none of the searches appear on the page where its short code is placed.
    If “Replace the default theme search with” is set to “White Papers” then the White Papers search appears on its page, but the Blog search does not appear on its page, and visa-versa.

    I am using these short codes in seperate columns:
    [wpdreams_asp_settings id=1 element='div']
    [wpdreams_ajaxsearchpro_results id=1 element='div']

    This means that the site can only have one or the other of the searches working at a time.
    Presumably you can create different searches for different pages on the site? Or am I missing something?
    I can’t provide a URL because the site is currently on my local dev machine.

    UPDATE: I can use the Simple Short Code and it works, but I need to use individual Settings & Results Short Codes. I can also use the two column shortcodes.

    Your help would be very much appreciated 🙂

    • This topic was modified 4 years, 7 months ago by lukehall92lukehall92.
    • This topic was modified 4 years, 7 months ago by lukehall92lukehall92.
    • This topic was modified 4 years, 7 months ago by lukehall92lukehall92.
    #25631
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    When using the settings or the results shortcodes, the corresponding search bar needs to be present on the page as well. The automatic replacement feature will replace the theme search with the given search bar globally.

    You can use multiple search bars of course, but the replacement can only use one. If you want some sort of a condition to show the searches depending on the pages, then I would rather suggest using the search widgets, or the shortcodes – depending on the situation.
    Some themes have conditional widget, where you can select which widgets should be visible on which page – you could use the search widget that way.
    If you use a page builder of some sort, and it allows using shortcodes/text blocks where you need the search, you can simply put the corresponding shortcode there.

    #25641
    lukehall92lukehall92
    Participant

    Hi,

    That’s a good explanation – thanks very much. I’ll see what I can do.

    Best wishes,

    Luke

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