Home Forums Themes Support Gecko "More languages" button for multisite?

Viewing 9 reply threads
  • Author
    Posts
    • #4382

      Hello again Harry!

      My website is almost finished, I’m fixing the details in these days.

      Today’s question is about the possibility of having more languages on my website.

      I installed a multisite copy of WordPress, so one is sitename.com and the other is sitename.com/en

      I would like to add a button near the currency, or where the search/account/wishlist icons are, that links to the other related website (they next year I’ll have three languages, so maybe I’ll start with an icon but in the future I’ll need a dropdown menu.

      Can you please help me to proceed with this matter?
      Thank you in advance.

    • #4385

      Hi,

      Do you duplicate this site and setup new site with other languages or you use a plugin for multilingual site (WPML, Poly Lang…)?

      We suggest add an icon before currency dropdown or next to currency dropdown.

      You can add custom html or short code in JanStudio > Theme Option > Header > Header Top Right Content.

      If you still need add a icon before search icon. you can override header layout by coy file layout-5.php in gecko > views > header to gecko-child > views > header.

      Best regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #4490

      Made it, thanks!!

    • #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.

    • #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 );
      }
      }
      }

    • #4587

      Sorry for late reply

      You can add this code to gecko-child > functions.php

      Best regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #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!

    • #4646

      1. You can try this plugin https://wordpress.org/plugins/language-redirect

      2. For currency on mobile, do you want like this https://monosnap.com/file/CxqwXA8fN2q2Dujkyn97PQ95Zv7DEJ# ?

       

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #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.

    • #4826

      1. I’m still don’t have solution.

      2. You can add custom css in JanStudio > Theme Options > General Layout > Custom CSS

      @media only screen and (max-width: 414px) {

      .header__top .end-lg.end-sm { display: inline;}

      .header__top .header-text { margin-right: 0;}

      .header__top .jas-currency { display: block;}

      }

      Best regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

Viewing 9 reply threads

You must be logged in to reply to this topic.