Tagged: x
-
AuthorPosts
-
January 13, 2017 at 2:57 am #1328492
nathansjcorpParticipantHi there,
when my site is in the chinese version, http://wordpress-30009-64912-195478.cloudwaysapps.com/?lang=zh-hans
i click on the search icon and start a search.
if you type something abstract like : jkfkf for example
the results will be:
http://wordpress-30009-64912-195478.cloudwaysapps.com/?s=jkfkfnow as you noticed it jumped back to english
when it should instead go to this url:
http://wordpress-30009-64912-195478.cloudwaysapps.com/?lang=zh-hans&s=jkfkfNow this might be a wpml issue or maybe a xtheme issue
so i switched to twenty-sixteen theme and tried again and it works, search in chinese, chinese results, search in English english results.
I also disabled all plugins for conflicts and left cornerstone and wpml running
but that did not fix it.January 13, 2017 at 3:03 am #1328497
nathansjcorpParticipantSo i can only assume this is an xtheme problem. Please advise.
January 13, 2017 at 8:41 am #1328778
LelyModeratorHello There,
Thanks for posting in. That text is ready to be translated if you where using <ahref=”https://community.theme.co/kb/translation/”>POEDIT. Another option to translate it is to add the following code on your child theme functions.php file.
add_filter('gettext', 'translate_text' ); function translate_text($translated) { $translated = str_ireplace('Nothing to Show Right Now', 'Nothing to Show Right Now TRANSLATION', $translated); $translated = str_ireplace('It appears whatever you were looking for is no longer here or perhaps wasn't here to begin with. You might want to try starting over from the homepage to see if you can find what you're after from there.', "TRANSLATION HERE", $translated); return $translated; }Hope this helps.
January 14, 2017 at 4:07 am #1329751
nathansjcorpParticipantuhhh… sigh…
I already translated that string.
that is not the problem.
Please reread the original post.did you check this link?
http://wordpress-30009-64912-195478.cloudwaysapps.com/?lang=zh-hans&s=jkfkf
it’s already translatedThe problem is chinese search should not jump to search results in english.
/?s=jkfkf vs /?lang=zh-hans&s=jkfkf
and please don’t tell me its wpml problem or plugin conflict because i already checked that.
January 14, 2017 at 4:50 am #1329772
Rue NelModeratorHello There,
I am another staff checking in your site. When I try the search, this is what I get;
http://prntscr.com/dvhgdi
http://prntscr.com/dvhglsPlease try clearing your browser cache or use Chrome’s incognito mode and test your site again.
January 15, 2017 at 6:02 am #1330714
nathansjcorpParticipantUh is it possible you did not actually type anything to search and just opened the link i sent you?
Here is what i’m doing step by step:
1-open browser and copy paste this link:
http://wordpress-30009-64912-195478.cloudwaysapps.com
you are now in the english site.2-scroll down to the bottom of the page all the way to the footer.
click on the language switcher select chinese.3-You are now in the chinese site
please check your url it should be “http://wordpress-30009-64912-195478.cloudwaysapps.com/?lang=zh-hans”4-Now click on the search icon (it is at the top of the page next to the globe).
5-type something random (dhdh$%^fj)
6- is your result in English or chinese?
mine is http://wordpress-30009-64912-202970.cloudwaysapps.com/?s=dhdh%24%25%5Efj
logically it should be
http://wordpress-30009-64912-202970.cloudwaysapps.com/?lang=zh-hans&s=dhdh%24%25%5EfjPS: i cleared cache, CDN, disabled plugins -re-enabled plugins
tried this problem on 2 different servers as well as a local install.
like i mentioned in the first post i switched to “Twenty Seventeen Theme”
and it works.
I also switched to x parent theme and it is also broken.January 15, 2017 at 6:43 am #1330740
ChristianModeratorHey there,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks.
January 16, 2017 at 12:54 am #1331556
nathansjcorpParticipantThis reply has been marked as private.January 16, 2017 at 12:54 am #1331558
nathansjcorpParticipantThanks for checking!
January 16, 2017 at 12:55 am #1331559
nathansjcorpParticipanttested ftp login via filezilla should work fine.
January 16, 2017 at 2:51 am #1331669
RadModeratorHi there,
Because the search eliminates all other URL parameters. This ?lang=zh-han is a URL parameter I went ahead and change your language URL format from
http://wordpress-30009-64912-202970.cloudwaysapps.com/?lang=zh-han
to
http://wordpress-30009-64912-202970.cloudwaysapps.com/zh-han/
Now, please check the search again 🙂
The search URL now become http://wordpress-30009-64912-202970.cloudwaysapps.com/zh-hans/?s=a
Thanks!
January 16, 2017 at 6:26 pm #1332754
nathansjcorpParticipanthey thanks that works!I did not think of that.
So for the record xtheme search will not work properly if i use lang=zh-han parameters?Thanks for the great support!
January 17, 2017 at 12:59 am #1333122
FriechModeratorYou’re more than welcome, feel free to get in touch with us regarding any further queries about the X|Theme and Cornerstone.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1328492 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
