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 4 replies, has 2 voices.
Last updated by Kor 1 year, 2 months ago.
Assisted by: Kor.
Author | Posts |
---|---|
October 15, 2023 at 11:49 am #14579367 | |
nadavP-4 |
1. I'm getting an error on Google console that we have many pages that are redirected because WPML allows the translated language URL even if there is no language and then it is redirected to the original URL, so Google marks it as redirection, how can we prevent it? we used the custom language switcher and it is displayed on all pages and posts, maybe it is the reason that Google thinks we have such a translated version for each language and for each page/post? 2. How can I prevent the Hreflang tags on pages/posts that are not translated? cause it appears on any page/post even if there is no translation and I guess it also affects Google indexing cause it tells Google that we have alternative languages for all pages/posts even if we didn't translate the page/post. Thank you! |
October 16, 2023 at 3:26 pm #14586449 | |
Kor Supporter
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Hi there, Thanks for contacting WPML support. Please allow me to try answering your questions. 1. Please check out this documentation https://wpml.org/documentation/getting-started-guide/language-setup/automatic-redirect-based-on-browser-language/how-browser-language-redirect-affects-google-indexing/ and see if it helps. 2. Sorry, I'm not so sure what you mean by this. Could you elaborate and also share some screenshots? |
October 17, 2023 at 1:35 pm #14594933 | |
nadavP-4 |
Sorry but seems like you didn't understand what I'm talking about, I'm talking about this: |
October 17, 2023 at 4:02 pm #14596409 | |
Kor Supporter
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Thanks for your reply. Yes, that's correct. If a page is not translated to a language, the hreflang tag will not show up. Referring to the screenshot, it looks like to me the Spanish page is indeed translated. If it's not, I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified. Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements. Your upcoming reply will be treated with confidentiality and will only be visible to you and me. ✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup. |
October 23, 2023 at 3:53 pm #14640045 | |
Kor Supporter
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Thanks for your reply. It's the option in WPML > Settings > Post Type Translation > "Translation - use translation if available or fallback to default language" . Selecting "Translation - only show translated items" will prevent the hreflangs from showing in untranslated languages. |
October 24, 2023 at 7:14 am #14642779 | |
nadavP-4 |
Thank you!! |