Skip Navigation

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

Last updated by Dražen 11 months, 2 weeks ago.

Assisted by: Dražen.

Author Posts
January 17, 2024 at 7:27 am #15192830

sabyasachiD

Tell us what you are trying to do?
I want to add a default hreflang tag to an existing directory/subfolder which was already setup before installing WPML.

Is there any documentation that you are following?
Could not find any relevant documentation.

Is there a similar example that we can see?
hidden link , this is one of our sites which is also using WPML and an hreflang tag is automatically added here.

What is the link to your site?
Category/Sub folder - hidden link
Article Example - hidden link

2024-01-17 12_55_25-view-source_https___cheggindiastg.wpengine.com_paise-kaise-kamaye_ek-lakh-rupye-.png
January 17, 2024 at 8:50 am #15193516

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

I am not exactly sure what do you mean, but if you have WPML installed on that website and that is your default language page, you can enable the directory for the default language:

- https://wpml.org/documentation/getting-started-guide/language-setup/directory-default-language/

For 2nd language, the page directory will be added once the translated pages exist and you are using the Language per directory option.

Hope this helps.

Regards,
Drazen

January 18, 2024 at 4:31 am #15197679

sabyasachiD

Thanks Drazen for your response.

I will try to elaborate on my issue better, our site has multiple directories which are in English (default site language) however only 1 directory is in a regional language and requires an hreflang tag.

There is no translation happening here, the content is being posted in a different directory all together in a regional language which is completely different from all other directories & content.

This directory is not setup using WPML, however I want to try and see if the plugin can help me create an hreflang tag for the said directory.

January 18, 2024 at 8:17 am #15198462

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks for getting back, I am afraid the only way it can work is if you are using WPML plugin and translating pages, in any other way I do not think you need Hreflang.

- https://wpml.org/documentation/support/adding-hreflang-wordpress/

Other then that, I think you would have better experience advising with and SEO expert and using SEO plugin on that website, if no translation appear you do not really need WPML.

Regards,
Drazen