This thread is resolved. Here is a description of the problem and solution.
Problem:
You are experiencing extra padding on the right of the 'Donate' button in the Divi main menu when the WPML language selector is active. This issue does not occur when the language selector is not active.
Solution:
The issue arises because your current CSS targets only the last menu item. When the language switcher is not present, the button is the last item, so the padding is removed. However, when the switcher is added, the button becomes the second-last item, and the padding remains. To resolve this, target the button directly with the following CSS:
#top-menu>li.cta-button {<br /> padding-right: 0 !important;<br />}
This adjustment will remove the extra space even when the language switcher is active, ensuring your button looks consistent across all pages.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to open a new support ticket at WPML support forum.
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.