Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #13917

    Hi there,

    I am using WPML to build a multi-lingual site (EN and FR) at the moment but will be DE, ES, and possible JP after.

    Everything is working fine for me except for an error that I believe comes from the function that defines the frontpage though avia framework.

    If you visit the website root in English, then click on French, it tries to visit example.com/?lang=fr but the content isn’t right – specifically, it is using the featured images from the english version of the page, rather than the french version.

    Have a look:

    Home page in English – everything works fine:

    http://www.rigaudrelations.on.ca/new/

    After clicking French flag – notice image captions are in English:

    http://www.rigaudrelations.on.ca/new/?lang=fr

    The actual frontpage in french (accessed through the Accueil link) – notice the image caption in French:

    http://www.rigaudrelations.on.ca/new/home/?lang=fr

    What is weird is that everything else is correct – the right dynamic template (frontpage-fr) gets applied to the French version regardless of how the page is accessed (notice the French welcome header is defined in the dynamic template).

    Help would be greatly appreciated!

    #81245

    Hi!

    Please try to install the new framework files from here: http://www.kriesi.at/support/topic/flashlight-wpml-widgets-in-translated-pages#post-56645

    Regards,

    Peter

    #81246

    Hi Peter

    Your solution worked like a charm!

    Thanks

    #81247

    Sorry Peter – I do have one concern.

    I keep getting the following message when in the backend and switching between languages:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘avia_default_dynamics’ not found or invalid function name in /home/riga9651/public_html/new/wp-includes/plugin.php on line 403

    Any idea what I can do to resolve this?

    #81248

    Hi!

    Hi LGRD,

    I’m not as familiar with WPML as Peter so I’m flagging this for him to look at.

    Regards,

    Mya

    Regards,

    Peter

    #81249

    I found this support forum from WPML that I thought might be related to solve the problem?

    http://wpml.org/forums/topic/deleted-translated-posts-wontt-be-recognized-as-deleted/

    Thanks again for the fast and effective support.

    #81250

    Hi!

    Open up velvet/config-wpml/config.php and delete following line:

    add_action( 'avia_wpml_backend_language_switch', 'avia_default_dynamics');

    It’s not required and it will trigger a warning.

    Regards,

    Peter

    #81251

    Hi;

    Have another WPML should have their own theme options like Choices(FR) but I don’t see them. Also, the translation of the home page shows the blog page rather than the home page content no matter what.

    Any ideas?

    Thanks!

    KP

    #81252

    Hi,

    did you try to switch the admin panel language? Choices(EN) will be displayed if the admin panel language is set to English; Choices(FR) will be displayed if you work with the “French” admin panel. The language switcher is located at the top of the admin panel.

    #81253

    Thanks Peter

    Removing the line seems to have solved the issue with error messages.

    #81254

    Hey,

    Glad this is fixed.

    Regards,

    Ismael

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

The topic ‘Avia Frontpage and WPML’ is closed to new replies.