Multi-language front page

  • Author
    Posts
  • #41469

    Aaron
    Participant

    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
    Keymaster

    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, please rate them on WordPress.org.
    #41580

    SebastianStevens
    Participant

    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
    Keymaster

    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, please rate them on WordPress.org.
    #43882

    Simplissite
    Participant

    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
    Keymaster

    @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, please rate them on WordPress.org.
    #45018

    thfrn
    Participant

    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

    ma_rich
    Participant

    @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
    Keymaster

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


    If you like our creations, please rate them on WordPress.org.
    #47200

    thfrn
    Participant

    @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

    cicero
    Participant

    @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

    Simplissite
    Participant

    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

    shere
    Participant

    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
    Keymaster

    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, please rate them on WordPress.org.
    #55981

    yodhin
    Participant

    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

    yodhin
    Participant

    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

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

You need to log in to reply to this topic.