Background of the issue:
I have translated all the pages on my site and added the option for English and Spanish using WPML. I am trying to ensure both language options are available on the live site.
Symptoms:
When I sign out of WordPress and visit the site, there is only an option for English, and the option for Spanish is not showing up.
Questions:
What am I doing wrong?
Why is the option for Spanish not showing up?
Thanks for contacting WPML forums support. Before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.
1) Please make sure that the Spanish pages are published, not drafts. In order to check that, please go to Pages-> All Pages, switch the language using the top admin bar, and check the translated pages.
If they are drafts, please publish them and check the issue.
2) It's not related to the issue, but according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. 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 /* That's all, stop editing! Happy publishing. */ line: