How to Add Hreflang in WordPress - international Targeting
How to Add Hreflang to WordPress - International Targeting
Hello, our wordpress site with english content
target audience and country of service "Ireland"
There is only one language and one country target audience.
There is no ireland option when installing wordpress
I chose England, when I look at the search console, the queries and the country part appear as England, all traffic comes from England.
When I look at the page source view on chrome; it looks like this
<html lang="en-GB" class="no-js
The steps I did to solve the problem are as follows:
1- From Legacy Tools and Reports - International Targeting
I chose the target country ireland
2 - I wrote the code below inside the head tags of the header.php file
<link rel="alternate" href="https://yoursite.com/" hreflang="en-ie" />
If you share on which pages of the wordpress site I will add the code, that is enough for me, thanks.
(I tried to do it with the attachment, it breaks the css)