-
AuthorPosts
-
September 30, 2018 at 10:00 pm #1016349
My WordPress: v4.9.8
– Enfold v4.4.1
– WPML v4.0.6I want modify the Enfold include wpml-config.xml (/var/www/html/wp-content/themes/enfold/wpml-config.xml) to get Language Switcher display like this:
https://wpml.org/documentation/support/language-configuration-files/
Only display actived language flag with a dropdown style menu, don’t display all avaliable language flag. Can you help me to resolve this config problem? Thanks a lot !!!Source file of /var/www/html/wp-content/themes/enfold/wpml-config.xml:
<wpml-config>
<custom-types>
<custom-type translate=”0″>avia_framework_post</custom-type>
<custom-type translate=”1″>portfolio</custom-type>
</custom-types>
<taxonomies>
<taxonomy translate=”1″>portfolio_entries</taxonomy>
</taxonomies>
<language-switcher-settings>
<key name=”icl_lang_sel_config”>
<key name=”font-current-normal”>#444444</key>
<key name=”font-current-hover”>#000000</key>
<key name=”background-current-normal”>#ffffff</key>
<key name=”background-current-hover”>#eeeeee</key>
<key name=”font-other-normal”>#444444</key>
<key name=”font-other-hover”>#000000</key>
<key name=”background-other-normal”>#ffffff</key>
<key name=”background-other-hover”>#eeeeee</key>
<key name=”border”>#EEEEEE</key>
</key>
<key name=”icl_lang_sel_footer_config”>
<key name=”font-current-normal”>#393939</key>
<key name=”font-current-hover”>#000000</key>
<key name=”background-current-normal”>#F5F5F5</key>
<key name=”background-current-hover”>#FFFFFF</key>
<key name=”font-other-normal”>#393939</key>
<key name=”font-other-hover”>#000000</key>
<key name=”background-other-normal”>#F5F5F5</key>
<key name=”background-other-hover”>#FFFFFF</key>
<key name=”border”>transparent</key>
<key name=”background”>transparent</key>
</key>
<key name=”icl_language_switcher_sidebar”>1</key>
<key name=”icl_widget_title_show”>0</key>
<key name=”icl_lang_sel_type”>dropdown</key>
<key name=”icl_lso_link_empty”>0</key>
<key name=”icl_lso_flags”>1</key>
<key name=”icl_lso_native_lang”>1</key>
<key name=”icl_lso_display_lang”>0</key>
<key name=”icl_lang_sel_footer”>0</key>
<key name=”icl_post_availability”>1</key>
<key name=”icl_post_availability_position”>below</key>
<key name=”icl_post_availability_text”>This post is also available in: %
<key name=”icl_additional_css”>#lang_sel img, #lang_sel_list img, #lang_
</language-switcher-settings>
</wpml-config>October 1, 2018 at 1:28 am #1016371Hey zambalee,
From looking at your settings above and the settings in the example on WPML it looks like you will want to add the:<key name="display_names_in_current_lang">1</key> <key name="display_link_for_current_lang">1</key>
to display the current flag
I don’t have WPML installed on my localhost to test, but this looks right to me, please give it a try.Best regards,
MikeOctober 6, 2018 at 4:28 am #1018377Dear Mike,
I just tried add those config in ./wp-content/themes/enfold/functions.php, but it seem’s not work.like bellow:
Mobile display:
I want change the language swither to show like this:
- The website’s default language is “ZH-CN“;
- Only display current language’s flag, for example, only display China‘s Flag
- User can click or hover on the China’s flag, then appear the drop-down menu, in the menu, display other available flags.
I’m working with Enfold theme v4.4.1, and WPML Multilingual CMS v4.0.7(Paid version). Can you help me to reslove this question?
Thank you very much!
Xiao Li
- This reply was modified 6 years, 2 months ago by zambalee.
October 6, 2018 at 2:44 pm #1018500Hi,
Can you please include a admin login in the private content area so we can take a closer look to assist.Best regards,
MikeOctober 7, 2018 at 8:28 am #1018619Dear Mike,
My website is one INSIDE server, and can not access from internet.
Or I can send u whole site archive or dedicate files. What shall I do?
Best Regards
Xiao LiOctober 7, 2018 at 3:21 pm #1018658Hi,
Oh I see, you are creating on a localhost?
Please try connecting with https://ngrok.com/ it’s a free tunnel your localhost to the internet so we can login.
Or you can setup a free host account with https://hyper.host/ and migrate it there.
Or I can ask the rest of the team if anyone can assist without seeing the site?Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.