Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1016349

    My WordPress: v4.9.8
    – Enfold v4.4.1
    WPML v4.0.6

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

    #1016371

    Hey 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
    2018-09-30_192301
    I don’t have WPML installed on my localhost to test, but this looks right to me, please give it a try.

    Best regards,
    Mike

    #1018377

    Dear Mike,
    I just tried add those config in ./wp-content/themes/enfold/functions.php, but it seem’s not work.

    like bellow:

    Mobile display:

    FHD 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.
#1018500

Hi,
Can you please include a admin login in the private content area so we can take a closer look to assist.

Best regards,
Mike

#1018619

Dear 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 Li

#1018658

Hi,
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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.