Created: 13/10/2020
By: DAEXT
Email: [email protected]
Thank you for using Hreflang Manager. If you have any questions that are beyond the scope of this help file please contact us via email or with the contact form available in our CodeCanyon Profile.
This video series covers the functionalities of the the Hreflang Manager plugin.
Please note that not all the aspects and implications are covered in this section, it's recommended that you read the entire documentation (FAQ included) before using this plugin in a production environment or asking for support to the plugin author.
The hreflang attribute, explained in details in this documentation provided by Google, gives search engines information on which language variations or geo-targeted versions of a page should be served to the users.
The Hreflang Manager plugin generates HTML link elements with included the hreflang attribute in the header of the pages available in the front-end of you WordPress installation.
With this plugin you have two alternative ways to implement the hreflang attribute, from the Hreflang -> Connections menu and from the Hreflang Manager sidebar available in the post editor.
The Connections Menu can be used to implement the hreflang attribute in any page (posts, pages, custom post types, homepage, categories, archives, etc.) of you WordPress website.
The Hreflang Manager sidebar, available in the post editor, can be used to implement the hreflang attribute on the posts (posts, pages and custom post types).
To implement the hreflang attribute with the Hreflang Manager sidebar follow this procedure:
Let's say that inside a single WordPress installation you have two versions of the same page, the first one is "Dog" localized for English users, and the second one is "Perro" localized for Spanish users.
To generate the proper hreflang markup in the English version (the page "Dog") proceed to the Hreflang -> Connections menu (or to the Hreflang Manager sidebar of the "Dog" page) and enter the following data:
Now you need to generate the hreflang markup of the Spanish version (the page "Perro"), enter the following data:
In this example our website is example.com (this should be the default page for non-targeted users, with a country selector or similar tools provided to the users) , we also own the german version de.example.com (for users that use the German language) , the English version en.example.com (for users that use the English language) and the Canadian version ca.example.com (for users located in Canada that use the English language).
Proceed to the example.com WordPress back-end and enter the following data:
In the de.example.com WordPress back-end enter the following data:
In the en.example.com WordPress back-end enter the following data:
In the ca.example.com WordPress back-end enter the following data:
This plugin makes use of the following resources:
In some server environments the information available in the PHP $_SERVER Variable do not allow this plugin to properly detect the page URL, to solve set the value of the Options -> General -> Detect URL Mode option to "WP Request".
PHP 5.2 and later versions are supported.
WordPress 4.0 and later versions are supported.