Home›Support›English Support›[Resolved] Facing 2 Issues, 1-Icons error when switching language 2-Slider content
[Resolved] Facing 2 Issues, 1-Icons error when switching language 2-Slider content
This thread is resolved. Here is a description of the problem and solution.
Problem: 1. Icons not displaying when switching languages due to CORS errors. 2. Slider Revolution content translation error, even after following the documentation.
Solution: 1. For the icons issue, we recommended adding the following code to the .htaccess file to fix CORS errors:
<filesmatch ".(eot|otf|ttf|woff|woff2)">
Header always set Access-Control-Allow-Origin "*"
</filesmatch>
2. We advised updating Elementor Pro to the latest version and re-checking the steps for translating Slider Revolution content as per the documentation.
If the solution provided here is not relevant to your case, either because it's outdated or not applicable, we highly recommend checking related known issues at WPML's known issues page, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket in the 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.
1-Icon not showing when switching language, as shown in the attached, all icons disappears when switching the language. while in the default language it works fine.
2-Slider content translation, i found an article from the website regrading slider revaluation content translation, but once i followed all steps the error msg in the screenshot appeared. while the slider works fine in default language.
Thank you for contacting WPML Support, I will gladly help you.
1) I visited your website and I could see CORS errors in the console. CORS stands for Cross-Origin Resource Sharing, you're trying to access a resource on your XXX domain from your YYY domain.
Could you please try to add the following to your .htaccess file:
# fix CORS error for fonts
<FilesMatch ".(eot|otf|ttf|woff|woff2)">
Header always set Access-Control-Allow-Origin "*"
</FilesMatch>
* The icons are part of the font that is not loading.
2) According to your debug.info, the WP memory limit needs to be increased, WordPress uses 40Mb as default and the minimum requirements for WPML are 128 MB. (Kindly check this page: https://wpml.org/home/minimum-requirements/)
You can increase it by adding the following code in your wp-config.php file right before the line: /* That's all, stop editing! Happy publishing. */
From what I can understand from the image you shared, it appears that you are editing the .htaccess file in a subfolder(/wp_site_16xxxxx) in your main website's root folder.
You need to add that code in the .hataccess file in the root folder of your website for it to work.
The .htaccess file, normally shouldn't be empty as it has some default WordPress code.
* it might be necessary to contact the hosting support team as I am unsure how your website's folders are set up.
Thank you again for following up, I've contacted domain.com support, and they confirmed adding the code in the .hataccess file in the root folder of the website.
1) From what I could check on my end, the icons issue seems to be resolved. Please try clearing the cache of the browser if this issue persists. (this means that the part with adding the code on the .htaccess file should be fine)
2) Related to the issue with the Slider Revolution, could you please check that you have the latest version, from the debug info you provided I noticed that you are using v6.7.3.
I would need temporary access to your site's WP-admin to investigate this issue and understand it better. Please create an administrator user using any email address you prefer.
Please fully back up your site (files and database) and confirm it in your next reply.
Your next reply is set to private for you to provide the username and password details.
Thank you for the support Marsel. I didn't follow the last suggested steps you suggested.
Instead i deactivated the plugin, then re-activated it, deleted the slides i had, created new ones from scratch and then followed the article to translate.