-
Search Results
-
Hi guys,
I’m using the latest Woocommerce 2.1.3 with Enfold, with Woocommerce Multilingual 3.2.1. The problem is there are a few places where I can’t figure out how to translate. The bulk of the translations is provided by woocommerce multilingual automatically, and some I use WPML String Translation to search for them, but there are still a few missing. For example, the “Show Details” for each product widget. Where/how do I access the complete list of strings? Thanks.
Gettting Google powered search on Enfold is fairly easy- Just need to get custom google search engine code and paste it in place of WP search function in copy of search.php in child theme. check following video for instructions:
The theme’s search boxes work with it. Just 2 small things,
1. How to disable the ajax search script in the header the header search box so it behaves just like the standard widget search box. While the header ajax search script doesn’t return results, it is still interfering and processing while typing in the box.2. How to remove number of results in the H1 entry title, for example it shows as this:
10 Search results for: testing
but google custom search returns 30 results so obviously that number 10 is coming from internal search results number. So could I remove the quantity number so that it show simply as: Search results for: testingThank you for your help!
My pages look fine on Google Chrome en safari, but whith internet explorer the pages give this error :
Notice: Undefined offset: 1 in /var/www/02/62/71/celebrationevents.eu/www/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php on line 1075
The BIG problem is that google indexes all my pages with this error. so the site has no use at this moment.
https://www.google.nl/search?q=Notice%3A+Undefined+offset%3A+1+in+%2Fvar%2Fwww%2F02%2F62%2F71%2Fcelebrationevents.eu%2Fwww%2Fwp-content%2Fthemes%2Fenfold%2Fframework%2Fphp%2Ffunction-set-avia-frontend.php+on+line+1075&oq=Notice%3A+Undefined+offset%3A+1+in+%2Fvar%2Fwww%2F02%2F62%2F71%2Fcelebrationevents.eu%2Fwww%2Fwp-content%2Fthemes%2Fenfold%2Fframework%2Fphp%2Ffunction-set-avia-frontend.php+on+line+1075&aqs=chrome..69i57j69i58.1192j0j7&sourceid=chrome&espv=210&es_sm=122&ie=UTF-8
Please advice
http://www.celebrationevents.eu
Note : All plugins disabeld and no cachingI’m in the process of finishing up a development site before I move it to a live environment. I absolutely love the Enfold theme and have been able to, thus far, build a beautiful site using it (still have a lot left to finish unfortunately).
EDIT: I’m using the newest/latest version of Enfold, Version 2.5.2
Anyway, I installed Relevanssi and now my “instant search” results that Enfold serves up via Ajax do not match those results on the actual search results page. Within the Relevanssi settings I input specific page ID’s that I do not want returned in the search results. On the search results page, those pages I don’t want to appear in the search results don’t appear, which is great.
However, they are still appearing within the “Instant Search” results. This is very bad, because I have pages that should only be seen by customers of mine (like “Thank you for purchasing”, “Reduced Special Pricing Pages” and so on).
After searching the forums, I found a few posts detailing similar issues. I included the following code which I found on this post: https://kriesi.at/support/topic/enfold-code-update-for-2-2-to-use-relavanssi-plugin/ within my themes functions.php file (at the very bottom of it, beneath everything else within the file)
add_filter('avf_ajax_search_function', 'avia_init_relevanssi', 10, 4); function avia_init_relevanssi($function_name, $search_query, $search_parameters, $defaults) { $function_name = 'avia_relevanssi_search'; return $function_name; } function avia_relevanssi_search($search_query, $search_parameters, $defaults) { global $query; $tempquery = $query; $tempquery->query_vars = $search_parameters; relevanssi_do_query($tempquery); $posts = $tempquery->posts; return $posts; }Unfortunately, that doesn’t work. I still am seeing pages that I specified within the Relevanssi settings as pages to not be returned in search results within the “Instant Search” results returned (but again, the pages I specified within the Relevanssi settings to not be returned in search results DO NOT appear on the actual search results page, which is correct…but they’re still appearing within the instant search results).
Topic: Search in Top Header
Dear Enfold,
help me please:
1.How to make search avaliable in top header visible before the HOME link. currently the search button only popup after click. i would like the Search avaliable before the home link.
2. why in the mobile version i could not find the search button at all? any code i need to put so i could search when im in mobile version?
thank you
indraDear all,
the AJAX-Search (location: main menu) displays two german terms below the input, when searching for a text-string which doesn’t exist. This happens in both versions of our website (standard: german / 2nd language: english). I think it is not a bug, so I kindly ask to give me some advice on how to solve that misbehaviour.
What I did, while trying to solve it on my own:
While earching for the strings which do not translate in the english version of our website, I found both translations in “themes\enfold\lang\de_DE.po”:on line60/61
msgid “Sorry, no posts matched your criteria”
msgstr “Entschuldigung, aber kein Eintrag erfüllt ihre Suchkriterien”and
on line 65/66.
msgid “Please try another search term”
msgstr “Bitte versuchen Sie einen anderen Suchbegriff”I used the “import .po-file”-function, imported the above mentioned .po-file and selected both terms to add them to string translation.
The result was that I saw an existing english translation for both terms. I added the german translation for both terms, check “translation done” and saved.
But sadly this did not solve the still existing problem.
I hope I described my approach in an understandable way. And I am looking forward to get a hint on how to solve this issue.
Kind regards!

