Multilingualism bug in Landing Page

  • Author
    Posts
  • #56906

    We use Anima (thank you for this beautiful theme) and the Polylang to create a multi-language website. However, in the “Featured Icon Blocks” area of the landing page, when we tried to use French pages in the French-version website and Chinese pages in the Chinese-version website, it turned out that we could only use single-language pages in two versions websites.

    We truly hope that this could be fix. Thank you.

    Website: www.cfcpe-edu.org

    #57104
    Zed
    Cryout Creations mastermind

    Please see https://www.cryoutcreations.eu/forums/t/multi-language-front-page/#post-54385


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

    Hallo Strasbourgeois,
    your website is now full in multilanguage.
    Have you any solution with Polylang and “Feature Icon Block” in this template cooperations?

    Thanks.
    J.R.

    • This reply was modified 6 years ago by janrok.
    #59771

    Hello J.R,

    I just tried the solution posted by Zed, by modifying the function anima_ipblocks() in the
    /includes/landing-page.php file from

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

    to

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

    Regards.

    #59773

    Hello saboarpad,

    Please see the reply above.

    Regards.

    #59775

    PS. The modification is tested on Anima 1.0.3. I don’t know whether it works on the later versions.

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

The topic ‘Multilingualism bug in Landing Page’ is closed to new replies.