- This topic has 9 replies, 3 voices, and was last updated 5 years, 7 months ago by Tom.
April 19, 2016 at 4:36 am #187879Enrico
I am trying to use hreflang in the header, I have inserted the hreflang in the content setting page. To work correctly must I set, in advanced setting, “Merge with site header” on?
Thanks a lot
EnricoApril 19, 2016 at 9:32 am #187937TomLead DeveloperLead DeveloperApril 19, 2016 at 10:58 am #187955Enrico
I am adding this type of content to each page header, now without the advanced setting, “Merge with site header”
<link rel=”alternate” href=”http://example.com/en-ie” hreflang=”en-ie” />
<link rel=”alternate” href=”http://example.com/en-ca” hreflang=”en-ca” />
<link rel=”alternate” href=”http://example.com/en-au” hreflang=”en-au” />
<link rel=”alternate” href=”http://example.com/en” hreflang=”en” />April 19, 2016 at 10:28 pm #188045TomLead DeveloperLead DeveloperApril 20, 2016 at 12:16 am #188059Enrico
They must be slightly different for every page. If inserted in wp_head of GP Hook they will be the same in every page.April 20, 2016 at 9:36 am #188147TomLead DeveloperLead Developer
Is there a specific area they need to be placed?
A plugin like this may be helpful: https://wordpress.org/plugins/scripts-n-styles/April 20, 2016 at 10:07 am #188157Enrico
They can be inserted in the <head> section of every html page that has a translation.
If they are correct and are inserted in the right position of each page, then Google should see them and show their status in: Search Console, International Targeting.April 20, 2016 at 10:09 am #188158TomLead DeveloperLead DeveloperApril 20, 2016 at 10:25 am #188173Enrico
Thanks a lot Tom! I realized now that I was confusing header and head. So I will remove the hreflang from the header and try to use the plugin you suggested.April 20, 2016 at 11:48 am #188179
- You must be logged in to reply to this topic.