Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with the first debugging steps and try to help with the issue quickly.
You can manually set pages in 2nd language to no-index via an SEO plugin, for example, Yoast SEO or can adjust some custom code for example fetch language, and if the language code is DE, print in HTML header no-index snippet.
Page-by-page is no option for us, as this requires a lot of time. We have 300+ pages. Do you have some function in WPML that we can add that does this?
I hope you're doing well. I have taken over this ticket and would be happy to assist you further.
Since you're using the Rankmath plugin, you can select multiple pages or posts in the language you want to set to 'noindex' in bulk, and apply the 'no-index' robot meta to those pages. For more detailed instructions, please refer to the guide below.
While WPML does not have a direct setting to apply a 'noindex' meta tag for an entire language, the only possible way I can suggest is by bulk-selecting pages or posts and setting them to 'noindex'. Alternatively, you can implement a custom coding approach to automatically set 'noindex' for all content within a specific language. For example, the code below will add 'noindex' meta to the page that contains the French language code(fr):
In this way, you can also prevent contents for a specific page from being indexed.
I hope you can understand. If there is anything else you'd like to share, feel free to let me know.
Best regards,
Prosenjit
The topic ‘[Closed] Noindex specific language without hiding it’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.