Transposh search problem

This topic contains 14 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 6 years, 3 months ago.

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #16131
    Ludovico
    Ludovico
    Participant

    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 Ludovico.
    #16135
    Ludovico
    Ludovico
    Participant
    You cannot access this content.
    #16136
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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 :)


    #16137
    Ludovico
    Ludovico
    Participant
    You cannot access this content.
    #16138
    Ludovico
    Ludovico
    Participant
    You cannot access this content.
    #16139
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    You 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 :)


    #16140
    Ludovico
    Ludovico
    Participant
    You cannot access this content.
    #16141
    Ludovico
    Ludovico
    Participant

    Another 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.
    #16146
    Ludovico
    Ludovico
    Participant
    You cannot access this content.
    #16151
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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 :)


    #16152
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    I 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 :)


    #16320
    Ludovico
    Ludovico
    Participant
    You cannot access this content.
    #16325
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    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 :)


    #16326
    Ludovico
    Ludovico
    Participant
    You cannot access this content.
    #16327
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Yes, 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 :)


Viewing 15 posts - 1 through 15 (of 15 total)

The topic ‘Transposh search problem’ is closed to new replies.