Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
  • #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 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:

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

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

    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!



    Please try to install the new framework files from here: (Purchase code hidden if logged out) -pages#post-56645




    Hi Peter

    Your solution worked like a charm!



    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?



    Hi LGRD,

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






    I found this support forum from WPML that I thought might be related to solve the problem? (Purchase code hidden if logged out) -recognized-as-deleted/

    Thanks again for the fast and effective support.



    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.





    Have another WPML related issue here. Using the choices theme, and on the theme options page the title is shown as Choices(EN) which means the other languages added through 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?





    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.


    Thanks Peter

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



    Glad this is fixed.



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

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