Skip Navigation

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.

This topic contains 8 replies, has 2 voices.

Last updated by Prosenjit Barman 1 year, 1 month ago.

Assisted by: Prosenjit Barman.

Author Posts
April 16, 2024 at 2:38 am #15522204

danieleB-4

Hello Prosenjit,

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.

Regards

April 16, 2024 at 2:47 am #15522208

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
I hope you're doing well.

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.

Best regards,
Prosenjit

April 16, 2024 at 8:27 am #15523247

danieleB-4

Hello Prosenjit,

thank you for your answer. I enclose two images, you can see the links to the different languages on the live site but none on the staging.

The live product has the following Url:
hidden link

Staging:
hidden link

In order to access the front end on the staging please use the following:

user:
blogvault
password:
88f60fac

Please let me know if you need to access the dashboard too.

Regards

2.png
1.png
April 17, 2024 at 3:59 am #15528985

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

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 you have translated the product automatically, please make sure the translation review for that product has been completed. For a better understanding of the process, please refer to the following guide: https://wpml.org/documentation/automatic-translation/how-to-review-automatic-translations-on-your-site/

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.

Best regards,
Prosenjit

April 17, 2024 at 12:13 pm #15531921

danieleB-4

Hi Prosenjit,

the products all have completed translations, as you can see from the screenshot.

For the product we have been using for testing I opened it again in WooCommerce Multilingual, completed the English translation and saved it.

Yet all products in front end do not have links to the translations, as you could see in previous screenshots and from the links.

4.png
3.png
April 18, 2024 at 3:50 am #15535290

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
Thank you for the update.

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.

Best regards,
Prosenjit

April 18, 2024 at 7:26 am #15535614

danieleB-4

Hello Prosenjit,

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.

Yet that part is not visible on the front end

5.png
April 19, 2024 at 2:51 am #15541615

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thank you for the update.

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

Looking forward to your response.

Best Regards,
Prosenjit

April 22, 2024 at 4:19 am #15547930

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

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.

Best regards,
Prosenjit

April 29, 2024 at 12:31 pm #15577087

danieleB-4

all sorted, thank you