• Resolved yusebs

    (@yusebs)


    Good morning,
    I would like to know if it is possible to install buttons on the intro page of the site to choose the display language of the site and consequently change the entire language of the site. I saw that there is WPML that allows you to change the language of the site but I don’t know if it allows you to choose the language by pressing the Italian or English language button. Do you have information about it? Thank you

Viewing 1 replies (of 1 total)
  • Plugin Contributor Julien MA Jacob

    (@wpr0ck)

    Hello @yusebs,

    You can use the language selector wherever you want using a widget, menu, the shortcode [weglot_switcher] or the HTML code <div id="weglot_here"></div>.

    And you can use this hook to deactivate the language selector on pages that are not the front page :

    php
    add_filter( 'weglot_button_html', 'custom_weglot_button_html', 10, 2 );
    function custom_weglot_button_html( $button_html, $add_class ) {
    
        if (!is_front_page()) {
            return '';
        }
    
    	return $button_html;
    }
    

    Let me know if you have all you need now 🙂
    Best regards

Viewing 1 replies (of 1 total)

The topic ‘WPML on intro page’ is closed to new replies.