Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-08:00)

Tagged: 

This topic contains 5 replies, has 0 voices.

Last updated by Bobby 22 hours, 15 minutes ago.

Assisted by: Bobby.

Author Posts
February 25, 2026 at 5:01 pm #17852485

premium-rallyI

After we have updated our theme the Floating language switcher is gone

February 25, 2026 at 5:13 pm #17852544

Lauren

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.

March 4, 2026 at 9:28 am #17871197

premium-rallyI

Hello,

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:

.wpml-ls-widget {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 99999;
background: white;
border-radius: 16px;
box-shadow: 0 4px 16px rgba(0,0,0,0.12);
padding: 8px 16px;
}

.wpml-floating-language-switcher .wpml-ls-statics-shortcode_actions {
margin-bottom: 0;
}

.wpml-floating-language-switcher .wpml-ls-statics-shortcode_actions a {
background-color: transparent !important;
}

.wpml-floating-language-switcher .wpml-ls-legacy-list-horizontal a {
padding: 5px;
}

.wpml-floating-language-switcher {
position: fixed;
bottom: 70px;
right: 20px;
z-index: 99999;
background: white;
border-radius: 16px;
box-shadow: 0 4px 16px rgba(0,0,0,0.12);
padding: 8px 16px;
z-index: 99999;
-webkit-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);
-moz-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);
box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);
}

March 6, 2026 at 1:34 am #17876399

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

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:

Also this is the link to thread for reference:
https://wpml.org/forums/topic/floating-language-switcher-doesnt-show/

1. Added below code in functions.php file of active theme:

add_action('wp_footer', 'wpml_floating_lang_switcher'); 
   
 function wpml_floating_lang_switcher() { 
    echo '<div class="wpml-floating-language-switcher">';
         
        do_action('wpml_add_language_selector');
    echo '</div>'; 
}

2. Added the below CSS in Appearance >> Customize >> Additional CSS:

.wpml-floating-language-switcher .wpml-ls-statics-shortcode_actions {
  margin-bottom: 0;
}
   
.wpml-floating-language-switcher  .wpml-ls-statics-shortcode_actions a {
  background-color: transparent !important;
}
   
.wpml-floating-language-switcher .wpml-ls-legacy-list-horizontal a {
  padding: 5px;
}
   
.wpml-floating-language-switcher {
   position: fixed;  
  bottom: 70px;  
  right: 20px;  
  z-index: 99999;  
  background: white;  
  border-radius: 16px;  
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);  
  padding: 8px 16px; 
   z-index: 99999;  
  -webkit-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);
  -moz-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);
  box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);
}

3. Choose only flag option from WPML >> Languages > Custom Language Switcher by pressing the Customize button.

Now it shows the floating language switcher as you can see in the attached screenshot.

Here is a doc for more details:
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/custom-language-switcher/

March 6, 2026 at 1:14 pm #17877912

premium-rallyI

Hello,

So I have done the steps exactly how they were described but still no floating language switcher appeared on the website.

March 6, 2026 at 6:33 pm #17878391

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

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.

Thank you,
Bobby