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 7 replies, has 2 voices.

Last updated by Bobby 1 month, 2 weeks ago.

Assigned support staff: Bobby.

Author Posts
August 22, 2019 at 7:02 pm #4442337

mariannaP-3

We have turned off the French website and don't want any of the French pages to show in the sitemap, therefore we say "no" in the following 2 settings under Advanced:
hidden link
However, when we say "yes" to those settings in its English and German counterpart pages, the settings are reverted back to "yes". What should we do so they don't affect each other?

August 22, 2019 at 7:57 pm #4442553

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hello,

Did you go to WPML->Languages-> Add/Remove languages and remove the French language from the language list ?

simply removing the language does not remove its content unless you delete it as it stays within the database

if you do not wish to delete the content for French then the quickest solution here would be to go to WPML->languages->Hide languages -> hide French

i have test this with the latest version of WPML and Yoast and Greek is removed from my sitemap by simply hiding it

August 22, 2019 at 8:48 pm #4442847

mariannaP-3

Thanks, your answer is a big time saver.
1. It seems too risky to remove a language so we have never done that. Once you hide a language, redirection will be automatically handled, correct?
2. now we have English and German, is there a way to remove a German page off the sitemap while it's English counterpart remains in the sitemap?
3. Is there an easy way to wipe out all French content? what would be the leftovers after deleting a language?

August 22, 2019 at 10:23 pm #4443087

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

1. By removing the language from WPML->Lanugages Add/Remove the content is not removed as it is saved in the database.

if you go to WPML->Languages->Hide "desired language" then there is no need to remove it nor delete its content

After hiding the language there wont be any links that link to it and they will all redirect back to default language if you have hardcoded links if that is what you are asking

2. If you want to target only one German page then you would need to delete the page. If you want to target all German pages simply "hide" the language

3. You would have to go to your pages/posts and bulk select then delete your French content under the French tab

August 23, 2019 at 5:58 pm #4449271

mariannaP-3

For #2 above, let us confirm... there is no way to unindex a page off the sitemap without unindexing all its counterpart pages in other languages, correct?

August 23, 2019 at 8:01 pm #4449661

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

For #2 :

You would need to either delete the specific page or correct unindex its counterpart pages in other languages as well

and you an unindex a whole specific language by "hiding" the language through WPML-->Languages

August 23, 2019 at 8:18 pm #4449737

mariannaP-3

We are only discussing about page-level settings now, it's confusing.

you answered this earlier "2. If you want to target only one German page then you would need to delete the page", you didn't mention there is an option to go under each language (for the same page) and index them differently, this is something I tried but it failed, back to the original question on top of this thread:

We have turned off the French website and don't want any of the French pages to show in the sitemap, therefore we say "no" in the following 2 settings under Advanced:
hidden link
However, when we say "yes" to those settings in its English and German counterpart pages, the settings are reverted back to "yes". What should we do so they don't affect each other?

August 24, 2019 at 7:58 am #4451041

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

This "Advanced" are is not a part of WPML but rather Yoast.

and Yoast does not allow this option to be different per language

the best way for you to achieve this with French is to leave this setting to "Yes" and go to WPML->Languages->Hide French, this will remove All the French pages/posts/etc. from your sitemap

The topic ‘[Closed] Turn on/off sitemap indexing’ is closed to new replies.