Forum Replies Created
-
AuthorPosts
-
January 28, 2015 at 8:38 am in reply to: The search wheel is spinning, but nothing happens.Why?Worked with default theme) #3726
Ernest Marcinko
KeymasterHi!
It looks like the z-index of the sidebar is much higher than the results box. With a simple custom css you can fix this:
[html]
.vertical.ajaxsearchpro {
z-index: 99999999999 !important;
}
[/html]
You can add this to the search plugins Theme Options->Custom CSS or any of the theme stylesheet files.Ernest Marcinko
KeymasterThank you very much, and have a nice day!
If you want, you can leave a rating on the plugin on your codecanyon downloads page, it helps me more than anything.
Ernest Marcinko
KeymasterHi!
The sorting is indeed a bug, just confirmed it on my test servers. Luckily there is a quick solution in your case. If you open up wp-content/plugins/ajax-search-pro/includes/search_content.class.php and go to lines 545-547, where you should see this:
[php]
if (count($all_pageposts)>0) {
usort($all_pageposts, array($this, ‘compare_by_rp’));
}
[/php]
Please remove of comment out these lines and the date sorting should work immediately. I’ve added this to the known bug list so the soon released next version will contain a bugfix.I’ve also installed the recent qtranslate to another test server and the code is indeed not working for some reason. After more digging I’ve found that there is a compatibility issue with qtranslate after certain wordpress versions including the function I used. So I figured out another way, which is working on my end.
Try this code instead of the one I provided before:
[php]
add_filter( "asp_results", "asp_qt_correct_url", 1, 1 );function asp_qt_correct_url( $results ) {
foreach ($results as $k=>$v) {
// Correct the url manually
$current_home = trailingslashit(home_url()) . qtrans_getLanguage();
$results[$k]->link = str_replace(home_url(), $current_home, $results[$k]->link);
}
return $results;
}
[/php]I hope if will work on your side as well.
Ernest Marcinko
KeymasterHi!
Try to disable the relevace sorting on the “Relevance Options” panel. The date/title sorting is only secondary if the relevance is enabled.
I googled for similar issues, and there is a known bug with one of the qtranslates filters, where it does not return the correct url if the permalinks are enabled.
The best way around this is to apply a filter on the search results, like this:
[php]
add_filter( "asp_results", "asp_qt_correct_url", 1, 1 );function asp_qt_correct_url( $results ) {
foreach ($results as $k=>$v) {
// Correct the url manually
$results[$k]->link = qtrans_convertURL( $results[$k]->link );
}
return $results;
}
[/php]Put the code above to your themes functions.php file. If the qtranslate documentation is correct, this should solve the issue.
Ernest Marcinko
KeymasterHi!
Try to delete the Lite version in the plugin manager and deactivate/activate the pro version again. This sounds like a 3rd party javascript issue. You can also try to temporary disable all the other plugins and see if it works then. If so, then it’s definitely a 3rd party issue. Let me know how it goes.
Could you also provide temporary admin/ftp access? I would like to check if there are any errors on the console. You can add access by editing your initial post in this topic.
Ernest Marcinko
KeymasterWell, looks like these options are working for me. I was able to change the color, font size, everything.
I’m using google chrome as browser. Are you sure you tried to change the fonts on the Theme options->Typography panel? http://i.imgur.com/ONq6lDK.png
May I ask what browser are you using?Ernest Marcinko
KeymasterCould you please provide temporary admin access to check on those options?
You can edit your first post in this topic for that 😉
Ernest Marcinko
Keymaster- Are you using any kind of content builder, like visual composer?
- Is your actual post content text, or are there any shortcodes?
- Are you searching custom post types?
Based on the screenshot there is no post content available or it’s stored in another field.
Ernest Marcinko
KeymasterI think I see what you mean now. You want the bigger result height.
There is an option for that as well.If you go to the same panel Theme options -> Vertical results then there is an option called One result item height, which is currently 70 pixels: https://i.imgur.com/4UwwnoG.png
If you increase that value, the results will show more text 😉
Ernest Marcinko
KeymasterHi!
On the Layout options -> Results Layout panel there is an option called Description length where you can enter the length in characters: http://i.imgur.com/1NTThxZ.png
You can modify the result layout on the Theme Options -> Vertical results panel. There are many options, so you can modify every detail of the theme: http://i.imgur.com/2TN5ux5.png
Ernest Marcinko
KeymasterHi!
Could you please re-upload the screenshot, it looks like it doesn’t get through.
Are you using any kind of content builder, like visual composer?
Is your actual post content text, or are there any shortcodes?If so, then try to enable the “Run shortcodes found in post content” option and disable the “Strip shortcodes from post content” on the “Advanced options” panel.
And additionally modify the “HTML Tags exclude from stripping content” option on the same panel to this value:
[html]<span><a><abbr><b><p><div>[/html]Screenshot: https://i.imgur.com/3SZwHxZ.png
This might ensure that no extra content is stripped away from the results.
Ernest Marcinko
KeymasterPlease check your configuration. You had some custom field values set to sample values: http://i.imgur.com/UoUXQgH.png
So the search probably tries to match these sample values, but they don’t exist.Also check the documentation first on this, it’s explained there with details: http://wp-dreams.com/demo/wp-ajax-search-pro3/docs/#frontend_search_settings_creating_custom_selectors_from_custom_fields
Ernest Marcinko
KeymasterHi!
I see the problem now. The whole search bot was set to rtl direction, which is not supported 100% currently. However I made a few changes, so the input field is now directed to the right and the writing direction should be correct as well.
I’ve also corrected the settings position with visual composer. I added an extra line for the settings to appear below the box and set the results position to “Blocking” on the frontend search settings panel.
You can finish configuring your search now 😉
Ernest Marcinko
KeymasterHi!
If I try Napoli I see these results: http://i.imgur.com/riCPH2T.png
but no error message. Maybe it was just the cache.Ernest Marcinko
KeymasterCould you please check the login privileges? I can’t see the plugin manager nor the Ajax Search Pro menu item.
-
AuthorPosts