Multi-language front page

  • Author
    Posts
  • #41469

    Firstly, thank you for the amazing free theme!
    I’m trying to build a multi-language website by using Fluida, but seems Polylang can not translate the static home page. Different languages interfere each other.
    What can I do to config different homepage for each language?
    Thank you!

    #41522

    Zed
    Cryout Creations Team

    Are you using the theme’s landing page or a static page for your homepage?

    Latest versions of Fluida fully support Polylang for multilanguage sites including for the landing page elements. You’ll need to use the Strings feature for input fields and define multi-language versions for elements that use posts/pages.


    If you like our creations, help us share by rating them on WordPress.org.
    Please read the available documentation and search the forums before posting.
    #41580

    Hi there! in the strings tab I do not see the pages that I have shown on the landing page. I also do not see an option/button to import them. Several alements, like header title and some other small elements are shown and being translated, but not the pages with their content. Is there an option to make them show up on the string tab?

    Many thanks!

    #41636

    Zed
    Cryout Creations Team

    The strings feature is intended for the single line of text fields that are present in the theme.
    Posts and pages are handled directly by Polylang as you can create separate instances of each post/page for each language.


    If you like our creations, help us share by rating them on WordPress.org.
    Please read the available documentation and search the forums before posting.
    #43882

    Hello,
    Thank you for your theme.
    I had a similar problem. With Polylang, my pages selected in Featured Icon Blocks stay in french instead of the same instance in english.
    I resolved it by replacing in /includes/landing-page.php in function fluida_ipblocks() :
    $page = get_post( $pageid );
    by

    Surely there is a better solution but in the meantime, it may help someone else…

    Website: www.simplissite.com/traduction-de-page-daccueil-theme-fluida

    #44395

    Zed
    Cryout Creations Team

    @simplissite, thanks for pointing out where the problem lies.

    This is a good workaround, however it is plugin-specific and would leave multilanguage functionality unusable with any other plugin that works in a similar way with Polylang but uses a differently named function.

    We’ll keep looking for a solution that works with all plugins and doesn’t require workarounds with specific function calls.


    If you like our creations, help us share by rating them on WordPress.org.
    Please read the available documentation and search the forums before posting.
    #45018

    Hi,
    Same problem with the Text Areas (Fluida landing page): no translation.
    The workaround provided by Simplissite works, same way.

    But I experience another problem with the media headers : the header-image-main-inside div is empty for secondary languages. It works with a fixed image but doesn’t work with the random header download option.

    #46577

    @simplissite thanks for posting this workaround, i have one more question if you can help – Text inside fetured blocks is translated but heading of text is still in original language.

    #47146

    Zed
    Cryout Creations Team

    @thfrn, do the separate language variations of the posts/pages all have the same featured image set?


    If you like our creations, help us share by rating them on WordPress.org.
    Please read the available documentation and search the forums before posting.
    #47200

    @zed Hi, I don’t use the featured images for the headers but the ones uploaded in customizer > Site Identity > media headers (with random option).
    Anyway, as I don’t need different versions of the media I just had to activate an option within the settings of Polylang to make in work:
    Languages > Settings > Media > Activate Languages and translations for media

    Working with media

    #51700

    @simplissite I have the same issue as @thfrn: your workaround works well for the featured icon block text but not the titles. Do you have a solution for that as well? Thanks!

    #52888

    Hi @cicero,
    With the last version of Fluida, the code I use is :

    Maybe it will resolve for the title.

    Website: www.simplissite.com/traduction-de-page-daccueil-theme-fluida

    #53018

    Hi,

    I have used the code and now the texts of the icons and the title in the featured boxes are showing in the selected language. However, the posts displayed are only in English while the language selected is Spanish.

    Is there a way to fix it?

    website: http://www.shereypaul.es/

    Website: www.shereypaul.es

    #54385

    Zed
    Cryout Creations Team

    Hello everyone!

    We’re giving a kick at solving the problem with landing page content not retrieving the correct language titles/texts with Polylang (and WPML). Things are working fine in our setup but we’d like some real life testing with genuine multi-language sites before pushing this change in all our themes.

    We’re doing these tests in our Kahuna theme first so we don’t break properly working sites using the other themes if there are still hiccups. If anyone is willing to do some trial runs, you can grab a copy from the repository.

    If you can’t or don’t want to switch themes, a preview in the customizer should be sufficient to check if the correct language is used in the featured blocks, boxes and text areas.

    Please let us know how things work out – implementing this in all our themes depends on your feedback.


    If you like our creations, help us share by rating them on WordPress.org.
    Please read the available documentation and search the forums before posting.
    #55981

    Thanks a lot for this workaround! It works great for me on the text areas and the blocks. Nevertheless, I don’t know where to add these lines for the boxes.

    Might anyone please so kind to help me with this workaround?

    Really nice and beautiful theme, btw…

    #55995

    Oh, and additionally, whenever I press the “read more” button on texts, they bring me to the page in each language. If I press the “read more” buttons in the boxes, they always bring me to the first language sites… If there’d be a workaround, that’d be awesome!

    Website: satoris.io

    #57601

    I am unable to use the code you provided to translate the icon blocks. Did something change with the latest update or is this my fault? Maybe you could provide a screenshot of the code area after you’ve copied the code so that I can make sure that I’ve done everything correctly.
    Also, are you planning on fixing the problem any time soon or will I have to change themes? I love Fluida so I hope you’ll be able to fix this problem…

    Thanks in advance 🙂

    #62905

    Hello,
    Thank you for your work and beautiful Fluida theme. I have tried the above php code, but I still cannot translate featured icons in the Landing page. I do not use Polylang, but Wp Globus plugin.

    Website: www.lakes.it

    #64615

    @ma_rich Hi,
    go to the sme file landing-page.php at the folder includs, than go to:
    $data[$count] = array(

    than replace ‘title’ => get_the_title( $pageid ),
    with
    ‘title’ => get_the_title( pll_get_post($pageid, get_locale())),

    enjoy :o)

    • This reply was modified 4 months, 2 weeks ago by  Abudi.
    #64801

    Zed
    Cryout Creations Team

    @abudi, that is outdated information.

    Fluida includes Polylang/WPML support for its landing page elements since version 1.5.2.


    If you like our creations, help us share by rating them on WordPress.org.
    Please read the available documentation and search the forums before posting.
    #67653

    Thank you. It still does not work. I have to look again for feauterd boxes translation.

    #67979

    Zed
    Cryout Creations Team

    There is currently limited support for multi-language categories in the featured boxes with Polylang. We are looking to find the best way to extend this support.


    If you like our creations, help us share by rating them on WordPress.org.
    Please read the available documentation and search the forums before posting.
Viewing 22 posts - 1 through 22 (of 22 total)

You need to log in to reply to this topic.