Problem: If you're trying to implement a floating language switcher on your website and it stays in the footer instead of floating as intended, even after adding CSS to the Additional CSS section and clearing the cache. Solution: We recommend inserting the following custom CSS code into WP > Appearance > Customize > Additional CSS:
This should help position your language switcher correctly as a floating element on your page.
If this solution does not resolve your issue, or if it seems outdated or not applicable to your case, please check the related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket if the problem persists. You can do so at WPML support forum.
Problem: You are developing a site and trying to translate the 'add to cart' button but cannot find the relevant code in functions.php, despite following documentation. Solution: If you're experiencing this issue, we recommend checking our documentation on string registration to make the strings available for translation in the UI. Here are some useful links:
Please note that the solution might be irrelevant if it's outdated or not applicable 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. If the issue persists, please open a new support ticket at WPML Support Forum.
Problem: You are trying to use a variable within functions.php in a custom shortcode for your WordPress site, but the text within the variable is not being recognized by WPML for translation. Solution: The strings you are attempting to translate are not following the WordPress localization standards, which is why WPML cannot register them for translation. To resolve this, you need to modify your code to adhere to these standards. Here is how you can update your code:
_e( 'Congratulations! Shipping is on us :', 'my-theme' )
_n('Free delivery on orders of %s or more.', wc_price( $min_amount ), 'my-theme' )
After updating, ensure to perform a full site backup. Then, scan the theme for the strings to translate by following the instructions here: Scanning the theme or plugin.
If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. We also advise 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. For further assistance, please visit our support forum at WPML Support Forum.