• Resolved edoherto

    (@edoherto)


    Hi:

    I’m trying to use an static homepage. I’m using Twenty Ten template and version 1.4.24 of the plugin. I am using Spanish as main language and English as second. I created a page called “Home” (/esp/home) and “Home” (eng/home-eng). When I set it as main homepage, it works fine in Spanish. The url of the site is like web.com/esp automatically. When I try to switch to English, using the widget, url changes to web.com/eng, and it shows an error, page not found.

    I have another page, /esp/galeria-de-fotos/ or /eng/photo-gallery/, switching there works.

    Help, please!

    https://www.ads-software.com/plugins/ceceppa-multilingua/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Alessandro Senese

    (@ceceppa)

    Update to 1.4.25 and let me know if it works fine ??

    Thread Starter edoherto

    (@edoherto)

    Just updated, still have the problem. You can check it here:

    https://www.karut.cl/wordpress/

    Thanks!

    [Moderator Note: No bumping, thank you.]

    Plugin Author Alessandro Senese

    (@ceceppa)

    Hi, I found out what the problem is… The plugin expect that language slug is only 2 chars, so to fix the problem just edit file “api.php” in “ceceppa-multilingua/includes” path and change this line ( #1485 ):

    if( preg_match( “#^([a-z]{2})(/.*)?$#i”, $_url, $match ) ) {

    with this one:

    if( preg_match( “#^([a-z]{3})(/.*)?$#i”, $_url, $match ) ) {

    Thread Starter edoherto

    (@edoherto)

    Hey! I fixed with JS like this:

    //link malo del home a ingles
    		$("ul.cml_flags li a[href='https://www.karut.cl/wordpress/eng']").attr('href', 'https://www.karut.cl/wordpress/eng/home-eng/');
    		//link malo del home a espanol
    		$("ul.cml_flags li a[href='https://www.karut.cl/wordpress/esp/esp/']").attr('href', 'https://www.karut.cl/wordpress');

    I’ll try next time! Thanks for all!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Static page Homepage not working’ is closed to new replies.