If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
July 4, 2012 at 4:37 am #13917
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:
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!July 4, 2012 at 5:58 am #81245July 6, 2012 at 12:12 am #81246July 6, 2012 at 12:42 am #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?July 6, 2012 at 2:06 am #81248
I’m not as familiar with WPML as Peter so I’m flagging this for him to look at.
PeterJuly 6, 2012 at 4:16 am #81249July 6, 2012 at 4:42 am #81250
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.
PeterJuly 14, 2012 at 1:05 am #81251
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.
KPJuly 18, 2012 at 6:14 am #81252
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.July 21, 2012 at 8:25 pm #81253July 23, 2012 at 12:16 am #81254
The topic ‘Avia Frontpage and WPML’ is closed to new replies.