Thank you for contacting WPML support. I'll be happy to help you with this. Is the floating language switcher something that is built into your theme, or something you were adding with custom code? If you are using custom code, please let me know where you are inserting it, and feel free to share the code in your reply so that I can take a closer look.
Sorry for the late answer. So we had the same problem at the beginning with the floating language switcher and your support took the problem and fixed it. I am almost sure that it was with custom code because in the Additional CSS of the wordpress theme there is a custom code:
As this is being added to the theme's functions.php any future updates will remove it, I would highly recommend installing a Child Theme and adding your custom codes there as that would not be affected when updating the parent theme.
I will share with you the original reply from the supporter that had helped you and the code they included:
I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)
**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **
I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.
NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.
The floating language switcher is no longer showing because the active theme is not firing the `wp_footer` hook on the front end.
I confirmed this by adding a simple test function to `wp_footer`, and it produced no output. Since the WPML floating switcher is attached to that same hook, it cannot render.
// WPML Floating Language Switcher
add_action('wp_footer', 'wpml_floating_lang_switcher', 20);
function wpml_floating_lang_switcher() {
// Make sure WPML is active
if ( ! function_exists('icl_object_id') ) {
return;
}
echo '<div class="wpml-floating-language-switcher">';
// Check the action exists before calling it
if ( has_action('wpml_add_language_selector') ) {
do_action('wpml_add_language_selector');
} else {
// Debug fallback (remove later if not needed)
echo '<!-- WPML language selector action not found -->';
}
echo '</div>';
This appears to be related to the recent theme update. Please check the updated footer template and ensure that `<?php wp_footer(); ?>` is present before the closing `</body>` tag.
Also, reach out to the theme developers regarding ths issue