Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › A Quick help is needed
This topic contains 53 replies, has 2 voices, and was last updated by daro201370 1 year, 7 months ago.
- AuthorPosts
- August 10, 2021 at 11:56 am #34241
Hi sir,
I bought your plugin today. I have configured some settings using documentation provided. But I need a quick help with the followings:
1. How to make the search results be redirected to the theme’s search page. Here is my website:
2. Is there a setting for displaying Ajax Search for a mobile devices below 640px; or I have to use a css selector with display: none (I dont want to use that because it ll causes high page loads based on gtmetrix.com)
Many thanks in advance.
Regards
Thon
August 10, 2021 at 12:34 pm #34242Hi Thon,
1. You can set the redirection options here.
2. There is this option, however that uses a user agent check on server side, and not a width check. If you prefer the 640px width check, then a custom selector is the best choice:
Best,@media only screen and (max-width:640px) { .asp_w { display: none !important; } }
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 10, 2021 at 2:09 pm #34243Thank you for your support.
1. I did try that, but it does not work as I may have set redirection URL incorrectly. Can you please set it for my website?
2. That is ok. Thanks
Cheers
ThonAugust 10, 2021 at 2:35 pm #34244Hi,
The default options are the correct ones usually: https://i.imgur.com/NcfpYgE.png
Best,
I quickly checked your site, it uses the default search results page URL, so that configuration will redirect to the results page.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 10, 2021 at 2:46 pm #34245Hi,
Thank you for support.
I dont see any setting in the image above? What is the default setting for the redirection URL I should configure in the plugin’s setting?
Cheers
ThonAugust 10, 2021 at 2:54 pm #34246These settings can be found after you create your first search bar.
Best,
Then you click on the settings icon to access the search settings.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 10, 2021 at 3:41 pm #34247Hi,
Thank you for your support. yes I know that, but your link here:
does not show how to configure redirection URL for my theme’s search result page?
Cheers
ThonAugust 10, 2021 at 4:06 pm #34248Hi,
sorry I missed that. However, I did that too before asking for help here.
The result search page is showing default wordpress page as seen in the attachment.
Cheers
ThonAttachments:
You must be logged in to view attached files.August 11, 2021 at 8:04 am #34250Thank you!
Is that page not correct? That seems to be the results page to me. The query parameters look right as well.
Best,
What page it should redirect to? Or are the results there incorrect?
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 11, 2021 at 10:16 am #34251that is not what expected. The display is wordpress default display; that is not good for my website. Here is the theme’s display on search result page:
https://www.khmeradverts.com/?s=&category=&location=&a=true
Is it possible to display them like that?
Cheers
ThonAugust 12, 2021 at 11:45 am #34257I guess this is some sort of a custom search then. It looks like it uses two additional custom arguments. Try the custom URL like this:
Best,?s={phrase}&category&location&a=true
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 12, 2021 at 12:26 pm #34259Hi sir,
thanks for your support.
I did that put the codes you suggested before posting this for help which was still saved in the settings, but it showed default wp display; now it works. It could be a cache or I am not expert! It is showing theme’s display now.
I have trouble inserting your short code into the header in this way:
<?php echo do_shortcode(‘[wd_asp id=3]‘); ?>
please see error attached.
the ajax search box is shown, but with errors. This is due to AIT Themes not allowing php codes being inserted into header.php; it allows only for curly brackets like this:
{do_shortcode(‘[wd_asp id=3]‘)}
When I used that curly line above, it wont show anything. Do you have pure PHP code (not shortcode) which can be used in php template?
Cheers
ThonAttachments:
You must be logged in to view attached files.August 12, 2021 at 12:32 pm #34261Hi!
You may need to ask them how to place a shortcode or a PHP code there, because this:
<?php echo do_shortcode(‘[wd_asp id=3]‘); ?>
..is pure PHP. It calls the do_shortcode function to execute the given shortcode. You can try directly invoking the shortcode handled, but it is basically the same thing:
Best,WD_ASP_Search_Shortcode::getInstance()->handle(array('id' => 3));
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 12, 2021 at 12:49 pm #34263Hi sir,
Thanks. I have sent a message to Theme’s support for help.
I have also tried this:
{(‘[wd_asp id=3]‘)}
It shows and generates the same error.
Thanks
ThonAugust 12, 2021 at 12:51 pm #34264Hi Sir,
Will my conversations with you be displayed to other users?
If yes, can you please hide them as I dont want people to spam or hack my website above.
I appreciate your help.
Cheers
Thon - AuthorPosts
You must be logged in to reply to this topic.