Tagged: language switcher, search, wpml
- 
		AuthorPosts
 - 
		
			
				
October 15, 2018 at 8:58 pm #1021800
I noticed that if you click “search” without entering anything, the language switcher does not display (see the link below). In the WPML settings I have it set to display and direct you to the home page if there isn’t a version of the page you are on that is translated. That works fine for everywhere other than here. I contacted WPML and they said it most likely is a theme related issue. If you could offer any help related to this it would be great.
October 18, 2018 at 3:29 pm #1023390Hey NicomIT,
Thank you for using Enfold.
Did you modify the language switcher? Please post the login details in the private field. We’ll check the settings.
Best regards,
IsmaelOctober 19, 2018 at 2:42 pm #1023936Hi Ismael,
No I don’t believe anything was modified. Below is link and login to a staging copy of the website.Ryan
October 22, 2018 at 3:23 am #1024650Hi,
I can’t access the Appearance > Editor panel through your dashboard. Please enable it or post the FTP details in the private field.
Best regards,
IsmaelOctober 22, 2018 at 2:44 pm #1024882Hi Ismael,
That should be activated now.Ryan
October 23, 2018 at 2:17 pm #1025414Hi,
It seems to be an issue with the W P M L function “icl_get_languages”. It returns nothing when the search query is present. Please provide the FTP details in the private field. We would like to do a few tests.
Best regards,
IsmaelOctober 24, 2018 at 1:58 pm #1025894Hi Ismael,
The info you requested is in the private info below.
RyanOctober 24, 2018 at 3:23 pm #1025930Hi,
I can’t connect to the file server. The login info is incorrect.
Best regards,
IsmaelOctober 24, 2018 at 3:28 pm #1025934Are you using FileZilla? If so, it should work if you connect using ‘SFTP – SSH File Transfer Protocol’.
October 25, 2018 at 1:47 pm #1026346Hi,
I had to modify the plugin’s sitepress.class.php file to fix the issue. The plugin unsets the languages when the post_type query var is blank or is not set.
Line 2825:
if( $_GET['s'] == '' ) { $this->wp_query->query_vars['post_type'] = array(); }Let us know if you encounter any issues. This is not a critical issue, so I wouldn’t bother that much if I were you, because users will only get to that page when they click the search button accidentally without entering any keyword.
Best regards,
IsmaelOctober 25, 2018 at 4:53 pm #1026415Awesome! Thanks very much for the help with that.
October 25, 2018 at 5:59 pm #1026451Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon - 
		AuthorPosts
 
- The topic ‘The Language Switcher is Not Displaying on the Search Page’ is closed to new replies.
 
