Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: "More languages" button for multisite? #4817

    1.Plugin: “Please Note: This plugin doesn’t allow content on the root site! Please read this description carefully to see if this works for you.”

    My main language is on the root, and I have all the SEO there so it will mess everything up 🙁

    2. Yes, how can I do that, only for mobile?
    Thanks as always.

    in reply to: "More languages" button for multisite? #4641

    Dear Harry,

    It doesn’t work in functions.php (I added it to the original theme and not the child but I don’t think that’s the problem)

    I also edited the queue to make if language != than it (italian) then -> english version, but nothing.

    Also, is it possible to add a <br> between the custom html (where I added my button) and the currencies in the mobile version?

    Forgive my basic questions but I’ve never touched a theme code so don’t want to mess up!

    in reply to: "More languages" button for multisite? #4575

    Sorry for asking something not totally concerning to your theme.

    Would this code work to redirect to another language (supposing that my Italian website is in the root and the English one in /en) if I add it in the index?

    add_action( ‘init’, ‘custom_lang_found’ );
    function custom_lang_found(){
    $lang = substr($_SERVER[‘HTTP_ACCEPT_LANGUAGE’], 0, 2);
    if( $lang == “en” ){
    if( is_home() ){
    $url = get_home_url().”/en/”;
    wp_redirect( $url );
    }
    }
    }

    in reply to: "More languages" button for multisite? #4492

    Would suggest, for the next update, a button as for the currencies that allows you to translate with Google Translate or to link to the other website language versions.

    in reply to: "More languages" button for multisite? #4490

    Made it, thanks!!

    This reply has been marked as private.

    Hello Harry!

     

    Wow, thank you so much for being so fast and helpful! A tight hug and wish you all the best!

Viewing 7 posts - 1 through 7 (of 7 total)