Viewing 28 posts - 1 through 28 (of 28 total)
  • Author
    Posts
  • #522281

    Hello.

    I set the language WPML plugin to display the language selector in the form of text, but the theme displays the flags.

    See the web: http://unibano.es/nueva/

    How I can to the language selector appears as text only?

    Thank you.

    #523200

    Hi aintzerga!

    did you make the right settings in WPML->Languages->Language switcher options ?

    Send us admin login and we take a closer look into it, if it does not work for you. Deactivate all other plugin but WPML while testing.

    Cheers!
    Andy

    #523217

    Hello,

    I send admin login in Private Content.

    Thanks.

    #523830

    Hey!

    you did not deactivate all other plugins, neither did you tell us if things got better for you when deactivating plugins. Are we allowed to deactivate your plugins temporarily by ourselves for testing purposes?

    Regards,
    Andy

    #523882

    Hello,
    You can disable plugins to test anytime.
    Thank you.

    #524326

    Hi!

    You can disable the theme’s default language flags with this inside the functions.php file:

    add_action('after_setup_theme','avia_remove_main_menu_flags');
    function avia_remove_main_menu_flags(){
    	remove_filter( 'wp_nav_menu_items', 'avia_append_lang_flags', 20, 2 );
    	remove_filter( 'avf_fallback_menu_items', 'avia_append_lang_flags', 20, 2 );
    	remove_action( 'avia_meta_header', 'avia_wpml_language_switch', 10);
    }

    Configure the language switcher in the WPML language panel.

    Regards,
    Ismael

    #525445

    Hello,

    I am not a programmer and do not know what you mean when you indicate me to modify the functions.php file
    Is there not a “visual option to set the language selector in the theme?

    Please I need help.

    Thank you.

    #525566

    Hi!

    I edited functions.php file in Appearance > Editor and added the code Ismael posted. Please review your website now.

    Best regards,
    Yigit

    #525627

    Hello,

    Now I can see that the flags are gone, but the texts of WPML language selector are not displayed.

    What can I do?

    Thank you.

    #526051

    Hey!

    You have to configure the language switcher in the WPML panel. You can attach it to the main menu or add it inside a widget.Please refer to this link: https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/

    Best regards,
    Ismael

    #526854

    Hello,
    I want the language selector in the header top left, but I see no possibility of setting up a Header Top Left Widget Area in the Widget.
    How can I do it?
    Thank you.

    #527815

    Hi!

    Add this in the functions.php file:

    add_action('avia_meta_header', 'add_custom_content_to_header');
    function add_custom_content_to_header() {
    	do_action('icl_language_selector');
    }

    Use the Quick CSS field to adjust the position of the switcher.

    Regards,
    Ismael

    #527978

    Hi Ismael, as I said earlier, I am not a programmer and I have no knowledge to modify the functions nor CSS file. As I can place the language selector in the head and left aligned? Thank you.

    #528658

    Hey!

    I added the code Ismael posted to Functions.php file as well. Please review your website now :)

    Cheers!
    Yigit

    #528728

    Perfect,

    How I can make the background color selector is transparent?

    Thank you.

    #528746

    Hey!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    #lang_sel_list * {
        background: transparent!important;
    }

    Regards,
    Yigit

    #529156

    Perfect,
    And how could align language selector to the right of the Top Header?
    I further note that when viewing the Web on an iPhone, the language selector is not centered on the screen, in this case social icons below.
    Thank you.

    #529158
    #529922

    Hi!

    Please go to Enfold theme options > Header > Extra Elements and choose to display “Header Secondary Menu” on the right

    Cheers!
    Yigit

    #529933

    OK but it does not fit the selector. The text “English” above the selector and texts are not vertically aligned to Top Header area appears. See example http://unibano.es/nueva/barras-de-accesorios-de-bano/

    What can we do to improve the look?

    Thank you.

    #529936

    Also when you select the English language, language selector returns to the left side of the top header. View: http://unibano.es/nueva/barras-de-accesorios-de-bano/?lang=en

    #529941

    And I could remove the “English” text, but the language selector still not aligned height and select English or French, the switch returns to the left.

    #530509

    Hi!

    You need to adjust the english theme options. Set the Header Secondary Menu to display to the right. Add this in the General Styling > Quick CSS field\ to align the selectors:

    #lang_sel_list {
        top: -8px;
    }
    
    #lang_sel_list li {
        border: 0;
    }

    Cheers!
    Ismael

    #530639

    Hey, Can someone tell me how i can add the short forms of the language like “EN” “DE” “FR” and also i want them next to each other (not a dropdown)

    #530742

    Fantastic,

    Thank you.

    #530762

    Ismael,

    When viewing the Web on the iPhone I see the language proficiency selector appears not centered.
    Besides I see in the Home that the selector has a white line at the top, we can remove? View: http://unibano.es/nueva/

    Thank you.

    #531495

    Hey!

    add this code to Quick CSS field:

    @media only screen and (max-device-width: 736px) {
    #lang_sel_list ul {
    position: relative;
    left: 75px;
    }}
    

    and adjust as needed.

    Cheers!
    Andy

    #532543

    Thanks,

Viewing 28 posts - 1 through 28 (of 28 total)
  • The topic ‘WPML language selector in text format.’ is closed to new replies.