Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Transposh search problem
This topic contains 14 replies, has 2 voices, and was last updated by Ernest Marcinko 6 years, 3 months ago.
- AuthorPosts
- January 3, 2018 at 2:58 pm #16131
Hello,
I have transposh on my site. The default language is Italian. When I do a search in French for example, when I click on a result, the post returns in Italian and not in French.
I saw that this problem was solved by you here:
https://wp-dreams.com/forums/topic/transposh-search-problem/
I think this guy had the same problem.
Thank you very much,
Ludovico- This topic was modified 6 years, 3 months ago by Ludovico.
January 3, 2018 at 10:42 pm #16135You cannot access this content.January 3, 2018 at 11:14 pm #16136Hi,
Thank you very much for the proper details, I may have found a possible solution, which I already added to the functions.php file in your theme directory via FTP.
The problem was, that WordPress was not returning the translated URLs, as the translation language was not present during the search process. I have debugged through the transposh plugin code, and found a way to parse the language and correct the urls after the search process.
Please note that this solution may not be 100% correct, as the issue is not isolated to the search plugin only. I believe that it should hopefully work now. I have added the following code to the functions.php file, for future refernce:
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 3, 2018 at 11:37 pm #16137You cannot access this content.January 3, 2018 at 11:59 pm #16138You cannot access this content.January 4, 2018 at 12:02 am #16139You are welcome.
Yes, it is a bit different. I have made a tiny modification, now it should work with both lite and pro versions at the same time.
For future reference, this is the current code there:
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 4, 2018 at 12:28 am #16140You cannot access this content.January 4, 2018 at 12:59 am #16141Another question, where I have to insert this variable in your search:
<?php echo $citysearch; ?>
As you can see, I created a div that overlaps your search when you go to the post because I could not do it directly in the search.
it’s possible to do it?
p.s. I attached 2 screenshots
Thank
Attachments:
You must be logged in to view attached files.January 4, 2018 at 10:37 am #16146You cannot access this content.January 4, 2018 at 3:04 pm #16151Hi,
If I understand correctly, you want to replace the search placeholder text with a custom value. You can actually do that with a custom filter function (similar to the previous solutions).
Add this custom code to the functions.php in your theme/child theme directory (copy from line 3 only!). Before editing, please make sure to have a full site back-up just in case!
Just change the $placeholder variable value on line 7 to anything you want it to.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 4, 2018 at 3:09 pm #16152I have also corrected the issue, where the search automatically triggered whenever the user hit the browser ‘back’ button – if that was the problem. I will make sure to include this fix in the next release.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 16, 2018 at 11:29 am #16320You cannot access this content.January 16, 2018 at 2:12 pm #16325Hi!
Thank you for letting me know this issue. I was able to replicate it on an apple device. It looks like it does not trigger the ‘keyup’ event to which the live search is attached.
I won’t be able to add a quick-fix for this, as the event handlers are hard-coded within the script files. I will make sure however to fix this in the upcoming release.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 16, 2018 at 2:24 pm #16326You cannot access this content.January 16, 2018 at 2:31 pm #16327Yes, apparently only Apple mobile devices seem to be affected. I will run more test though to make sure.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
The topic ‘Transposh search problem’ is closed to new replies.