Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterHi!
Sorry, I must have missed your ticket.
The fact is, that the search is unable to return tags as results, only posts or custom post types, which contain the tags are returned.
This will be possible in the next version (2.0, in a week or so)
Thank you!
Ernest Marcinko
KeymasterTry to replace the upper code with this:
<!– search –> <?php if ( empty( $data['head_show_search'] ) || ( !empty($data['head_show_search']) && $data['head_show_search'] == ‘yes’) ) { ?> <?php echo do_shortcode('[the search shortcode here...]'); ?> <?php } ?> <!– end search –>Ernest Marcinko
KeymasterHi!
I’ve looked into this, but I don’t have a proper solution for you yet. The problem is, that this version is not ready for such modifications, there is no easy way of doing this.
However, I’m currently working on version 2.0 with some cool new features and one of them is exactly this. (I’m currently experimenting with it)
In a week or so, the new version will be released and you will be able to do this modification with only 1 single line of code inserted into the template. Please be patient until then!
Thank you!
Ernest Marcinko
KeymasterHi!
The template you are using is full off javascript errors. I have managed to fix some of them, but there are still missing files and references. As I commented out the unneccesary code then the javascript errors disappeared and the search started working. (it was in the templates custom-functions.php file)
Also, there is something in the template is blocking the $ jQuery reference so some parts of the administrator area are not working correctly.
If you are planning to install other plugins then you might experience issues, as there are still some problems remaining in the template.
Ernest Marcinko
KeymasterYou can add the shortcode to a div element if you want to limit the search widht, because it’s responsive:
<div style='width: 30%'> <?php echo do_shortcode('[wpdreams_ajaxsearchpro xx]'); ?> </div>Ernest Marcinko
KeymasterHi!
Can you please provide login information? I cannot see the search.
Ernest Marcinko
KeymasterHi!
I probably managed to fix the problem on local servers. Please install the version I have attached to this post, it should solve the issue.
Ernest Marcinko
KeymasterHi!
It was a bug, thanks for noticing. I fixed it on your site.
The 156×202 image size is a bit big, but it will work, altough you can experience “holes” in search results where no images are found, since the height of 202 pixel will be still there (unfortunately I cannot change that to automatic height for several programatical reasons)
If you tend to use such big images, I recommend to change the “Results title link font” and the “Results title hover link font” font size to at least 17px and the line height to about 18px.
Also a little bit bigger “Description text font” can make a huge difference. Try the 15px font size with a 20px line height, maybe a darker color like #888888.
I hope I helped!
Ernest Marcinko
KeymasterHi!
To integrate the search into the template, you need to edit the template files, locate the template’s default search, then replace it with the ajax search pro shortcode. It requires intermediate knowledge of php/html and wordpress.
Usually the search is located in the template’s head.php or header.php file.
It’s ethier displayed with the built in function<?php get_search_form( $echo ); ?>
or something like this
<form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>"> <div><label class="screen-reader-text" for="s">Search for:</label> <input type="text" value="" name="s" id="s" /> <input type="submit" id="searchsubmit" value="Search" /> </div> </form>Basically you need to locate this (or similar) search code in the template and replace it with the ajax search pro shortcode, which you can get in the plugin settings page. ( )
There is no exact way of doing this, since every template can have it’s own code, which is probably different for every template.
You can read more about this here: http://codex.wordpress.org/Function_Reference/get_search_form
-
This reply was modified 12 years, 9 months ago by
Ernest Marcinko. Reason: wp link
Ernest Marcinko
KeymasterYou will probably need to reconfigure the plugin as the 1.8 version has about 50 more options. I will try to explain the process step by step.
- First you need to delete your current search form, that you have created in ajax search pro
- You can download the updated search on codecanyon at the same place you downloaded this. In other words, you just need to download it again.
- Then you can delete the Ajax Search Pro plugin via the plugin manager in wordpress. First deactivate it, then delete.
- Then install the new version and activate it. (first you need to extract the .zip file you dowload, because there is the documentation as well)
- Then you should see the ajax search pro menu again, so you can create your search form again.
- After configuring the search form you will need to replace the shortcode in your template (because the old one will not work)
- Chmod the wp-content/plugins/ajax-search-pro/cache and the wp-content/plugins/ajax-search-pro/css folder to 777 if something is working incorrectly.
- And that is it!
It should work then! 🙂
Ernest Marcinko
KeymasterHi!
Sorry I answered, but it seems like this form did not send it. I noticed, that you are using a very old version of the search. It’s version 1.25, the 1.8 is available for download on codecanyon, it will probably solve the issues!
You will need to delete the current search as the 1.25 and the 1.8 is a big jump of versions and are probably incompatible.
Ernest Marcinko
KeymasterI might need temporary ftp and administrator access to see this and do a debugging. I have no idea why would an 500 error pop up.
Ernest Marcinko
KeymasterHi!
Please try to deactivate the caching and the image precache, it may solve the issue!
Ernest Marcinko
KeymasterThe images are stored in the cache folder, regardless of the enabled/disabled cache.
I don’t understand, where do you get the non-existent images? If I type in “test”, then I get a bunch of results, and one of them has an image in it. Although I cannot check if other posts have images, because I cannot access them.
Ernest Marcinko
KeymasterAlso, when I type in non-existent image names like http://demo.intranet.iveo.se/wp-content/plugins/ajax-search-pro/cache/xy.jpg
it also throws 403, but I think it should throw 404. Maybe is the image hotlinking or something similar turned of on server configuration?-
This reply was modified 12 years, 10 months ago by
Ernest Marcinko.
-
This reply was modified 12 years, 9 months ago by
-
AuthorPosts