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 mastermind

    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 check the available documentation and search the forums before starting a topic.
    #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 mastermind

    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 check the available documentation and search the forums before starting a topic.
    #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

    if ( function_exists( 'pll_get_post' ) ) {
    $page = get_post( pll_get_post($pageid, get_locale()));
    } else {
    $page = get_post( $pageid );
    }

    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 mastermind

    @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 check the available documentation and search the forums before starting a topic.
    #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 mastermind

    @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 check the available documentation and search the forums before starting a topic.
    #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
    https://polylang.pro/doc/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 :

    if ( function_exists( 'pll_get_post' ) ) {
        $page = get_post( pll_get_post($pageid, get_locale()));
        $pageid = pll_get_post($pageid, get_locale());
     } else {
        $page = get_post( $pageid );
     }

    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 mastermind

    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 check the available documentation and search the forums before starting a topic.
    #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 5 years ago by Abudi.
    #64801
    Zed
    Cryout Creations mastermind

    @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 check the available documentation and search the forums before starting a topic.
    #67653

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

    #67979
    Zed
    Cryout Creations mastermind

    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 check the available documentation and search the forums before starting a topic.
    #72557
    NoPlaceLikeOutside
    Power User

    This is sort of related I think. If not I will open a new request.

    I use Polylang to have my site in two languages. I have two main categories, from which I would like to show the latest post on the landing page.

    The problem: Polylang creates different categories (with different slugs) for both languages. If I use the ‘Featured Boxes’ with ‘Boxes Content’ set to ‘All categories’, Polylang filters for bot languages the posts and everything is fine. When I want to show a specific Category however, I have to choose one but than this will be or in Dutch or in English.

    I was wondering if the Plus feature ‘Posts Layout and Filtering’ would allow me to still select ‘All categories’ and in the mean time use the plus feature to filter down on a specific category.

    Website: noplacelikeoutside.be

    #75818
    This reply is private.
    #75994
    Zed
    Cryout Creations mastermind

    @NoPlaceLikeOutside, category filtering is not currently supported for the featured boxes sections with Polylang or WPML. We are working on a way to implement this, but the theme filters the posts using the category slug, and neither plugin provides an easy way of ‘translating’ this slug.


    @Teele
    , if you mean the text which appears under the site’s title, that tagline is a core WordPress thing and not handled by the theme.
    If, instead, you refer to the theme’s landing page slider caption text (which is a copy of the tagline by default), that is also translate-able through the strings feature, but is part of the theme’s strings, not WordPress’.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #76839

    Hi,

    I am facing the same or a simliar problem. I am using the septera theme.
    I have a German and an English front page with polylang, where Featured Boxes 2 should show posts from a specific category (Projekte for German and Projects for English).
    If I selected the category Projekte in the customizer it works fine for the German front page. The english front page however shows all posts regardless of the selected category. Current workaround is a manual hack for the specific category and language in the landing page php code.

    For the Cryout slider there is the option to use a short code which I then can edit in the polylang settings. Would this be a possible solution for this case?

    Regards

    #78060

    Same problem as @Christoph.
    Not the posts from selected category but all posts are displaying in second languages. It happens in Featured Boxes 1 & 2 on my landing page. Although I have translated all post content and categories using Polylang to link them together.

    Plus, encrypt in Featured Icon boxes only work on primary language but display full content when in second language.

    I have used the workaround but seems cannot fix the problem:

    if ( function_exists( ‘pll_get_post’ ) ) {
    $page = get_post( pll_get_post($pageid, get_locale()));
    $pageid = pll_get_post($pageid, get_locale());
    } else {
    $page = get_post( $pageid );
    }

    Website: www.causewayeducation.com

    #83607

    Hi, unfortunately the same problem with Septera here. Please find a solution because this functionality (Featured Boxes 1 & 2) is essential for my site. Thank you in advance.

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

The topic ‘Multi-language front page’ is closed to new replies.