- This topic has 2 replies, 2 voices, and was last updated 4 years, 7 months ago by lukehall92.
-
AuthorPosts
-
February 2, 2020 at 9:22 pm #25620lukehall92Participant
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 lukehall92.
- This topic was modified 4 years, 7 months ago by lukehall92.
- This topic was modified 4 years, 7 months ago by lukehall92.
February 3, 2020 at 2:55 pm #25631Ernest MarcinkoKeymasterHi,
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.February 3, 2020 at 5:11 pm #25641lukehall92ParticipantHi,
That’s a good explanation – thanks very much. I’ll see what I can do.
Best wishes,
Luke
-
AuthorPosts
- You must be logged in to reply to this topic.