Home›Support›English Support›[Resolved] Split: Links added to the products are not visible in other languages
[Resolved] Split: Links added to the products are not visible in other languages
This thread is resolved. Here is a description of the problem and solution.
Problem: The client reported that after solving an issue with variations being deleted, a new problem arose where the links to the languages were not visible, despite the product being translated. Solution: We reviewed the client's site and found that the Language switcher shortcode was missing from its designated file. We added the shortcode to the end of the
social-icons.php
file in the theme. This action resolved the issue, and the Language selector is now displaying correctly on the front end of the Staging site.
If you're experiencing a similar issue where your language links are not visible, we recommend checking if the Language switcher shortcode is present in the correct file of your theme. If it's missing, you should add it accordingly.
Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If the issue persists, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need help, please don't hesitate to open a new support ticket with us.
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.
thank you for the detailed info, doing so solved the issue with the variations being deleted upon saving them.
But a new problem arise now, all the links to the languages are not visible any more. I did check in the translation area that the product is translated.
If you need access to the staging I can send you the details, let me know please.
I understand you're experiencing issues with links in other languages. Could you please provide more details about the problem? Sharing a screenshot and the link to the product where you're encountering the issue would greatly help in understanding the problem and allow me to offer more targeted assistance. If needed, I will surely ask for access to your site.
Looking forward to your response and I'm always here to help.
Hello There,
Thank you for sharing details about the issue.
Language selectors appear only if translations are available for the products you are viewing. If the language switcher isn't visible, it's likely that the translations are not yet available.
If the review is completed or the product is not translated automatically, please make sure that the translation status of the product is set to "Published". To check the status:
- Switch to the other language from your WordPress dashboard using the language switcher that appears on the topbar of the admin.
- Go to the Products > All Products and locate the product
- Click on the 'Quick Edit' link below the template name and make sure that the status is set to "Published".
Please let me know how it goes. I will be happy to help if you need further assistance in this matter.
I have inspected both sites and noticed that the entire Language Switcher markup is missing from the header section of the staging site. Please check this screenshot for a better understanding: hidden link
Since you are using the theme's default header, please confirm that the language switcher shortcode is correctly implemented in the header of the staging site, similar to how it's set up on the main site, and then check again.
Once you have ensured that the language switcher is properly positioned in the staging site's header, proceed to "WPML > Languages." Scroll down to the 'custom language switcher' section. Here, activate the Custom Language Switcher and adjust its settings according to your requirements.
Let me know if that helps or if you need further assistance in this matter. I will be happy to help.
thank you, indeed is missing the entire div with the selector, which is visible on the live site with the ID "lang_sel_list"
the fact is the live and staging are identical, I am still checking also all the settings, the theme is the same.
I went to check as you suggested in "languages" -> "custom language switcher" and all is active, the preview on both websites shows the same. I enclose screenshot of the preview on the staging.
On the main site, the language switcher is implemented using a shortcode. Please ensure that you use the same method to add the language switcher on your staging site as well.
However, if the issue persists even after making sure that the language switcher shortcode exists, a closer inspection will be required to understand the root cause of the issue.
I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated.
You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.
IMPORTANT
-Please backup site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link
Hello There,
I hope you're doing well. Sorry for the delay in responding due to the weekend.
Thank you for providing the access information. Upon review, I noticed that the Language switcher shortcode was missing from its designated file. I have now added the shortcode to the end of the `social-icons.php` file in the theme. You can see this update in the screenshot here: hidden link. The Language selector is now displaying correctly on the front end of the Staging site.
Please check this screenshot: hidden link
Please let me know if you need further assistance in this matter. I will be happy to help.