Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterThe easiest way is probably to make a child theme and customize the results page as you want it, but it very highly depends on how the theme is actually coded. Some themes are built up from the back-end, so you need some sort of an API to access the output, others are just hard coded so you can change anything in the template files.
Because of that there is no generic approach as every single theme out there is different.Let’s say you can do it via a child theme. In the theme directory the search.php file is the template called when outputting the search results. Making modifications to that is the solution in that case. You need to find the part where the actual text is printed and add a conditional statement to check which of the search instances has been triggered and redirected to that page, for example:
if ( isset($_GET['p_asid']) ) { if ( $_GET['p_asid'] == 1 ) { $text = "Text when results coming from search ID=1"; } else if ( $_GET['p_asid'] == 2 ) { $text = "Text when results coming from search ID=2"; } }If you want to avoid coding alltogether, then as an alternative solution you could create custom results page via the results shortcode. Then the results information box is going to be shown as the live search results are used as sort of a results page.
Ernest Marcinko
KeymasterHi Andreas,
The most likely issue is that the product post type is not selected to be indexed or the product post type is not selected on the search instance panel (or both).
I suggest chekcing that first, it is very likely to be the problem.You are correct about the synonyms there, it is the easiest way to define additional keywords to match generally for all the products.
Ernest Marcinko
KeymasterHi,
It is not showing “Results for Software” in the results pageOkay, it is not exactly what that feature does. The text on the results page cant’s be affected by the plugin unfortunately, it is usually changeable on the theme settings page – or on the page builder settings if you use any. Either of those have the control over that. Sometimes they are also programmatically changeable based on the query arguments.
The results information box is to be used with the live search results container, for example: https://i.imgur.com/ABmJXLL.png
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterI must have done it by accident, I didn’t even notice, sorry about that. I thought I saved without a change. That explains the problem though.
Those have known issues unfortunately. Newer Elementor versions use different methods to load the results and there is a very good chance they will not be supported in the future because of that. We are in contact with some developers, but so far no luck to make them work in every single case.
In the upcoming release it is addressed, but still not a 100% functional unfortunately. They may add a hook point to change it later on, that will most likely be the solution to it. Until then all we can try is fix/patch, but it’s not a very reliable solution.Ernest Marcinko
KeymasterHi,
Thank you for the details!
I opened the page editor and saved the page again. It seems to have resolved the issue, so I’m guessing there was something left in the cache which conflicted. Now it’s cleared and should be all right.
Ernest Marcinko
KeymasterHi,
The best way to custom position the search and the results is by using the search & results shortcodes. If you are using a page builder (or Gutenberg), then you can use it in any shortcode or custom HTML block. If not available you can still resort back to the shortcode builder.
For custom field filters I recommend checking this documentation – it covers everything in details. In case you use taxonomy terms, then check out the taxonomy term guides.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
Okay – usually it is not the best idea to use custom queries with custom query arguments as the search query will override it in most cases.
However you can make taxonomy term based exclusions and inclusions on the search settings – which should yield you the same output.
Ernest Marcinko
KeymasterThe next update is in the works, I’m not sure if this is coming with it – there are huge amounts of cahnges, so we need to be sure to have a stable release. Once 4.27 is stable and released, we are going to look at these additional requests 🙂
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi!
You can change that here: https://i.imgur.com/SqHiVA6.png
I hope this helps 🙂Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts