“Your site has no hreflang tags” fixed for Website (without plugin)

What is International Targeting?

International targeting is considered as an important aspect of any SEO campaign setup. It guarantees that your website and related content is delivered to the right audience from a specific geographic location.

Why is International Targeting important for your website?

If you want to expand your local firm internationally, you should implement international SEO practices on your website.

You just need to follow some set of steps and be patient to achieve better results.

  • Getting a large number of international consumers would be the major benefit to your website.
  • Attracting large number of international visitors to your website enhances the efficiency of your marketing initiatives.
  • You also gain customer insights about the customers from your target countries.   
  • You can also find out their location, gender, age, purchase intent and other marketing related information.
  • All of this information can be used to shape your international SEO approach.
  • You can essentially improve your website visibility by using International SEO.
  • Your website can also be optimized for several browsers such as Safari, IE, Chrome, Firefox, etc. That indicates you can reach out to the different users across globe using browsers.
  • By using International SEO, you can also find out the success rate in acquiring organic visitors.

Implementing hreflang tags on website (WordPress)

Are you looking for a way to include hreflang tags in your website pages and posts?

If you wish to publish content in various languages or for distinct locations, hreflang tag let you enhance SEO in those areas.

We will show you what hreflang tag is and how to implement hreflang tags in your WordPress website.  

What is hreflang tag?

The hreflang tag is HTML code that tells search engine which web page to be displayed specific geographical location and language.

It can also be used to specify different language variants of the same content.

The hreflang tag implementation in plain HTML:

<link rel="alternate" href="example.com" hreflang="en-us" />
<link rel="alternate" href="example.com/fr/" hreflang="fr-fr" />
<link rel="alternate" href="example.com/pt/" hreflang="pt-pt" />

The hreftag is considered as a combination of the region code and the language code such as fr-fr for French and France, pt-pt for Portuguese, etc.

WordPress is accessible in over 60 languages, so you can easily use it in the language of your choice.

Search engines can easily identify a page’s language and match it to the web browser’s language preferences of a user.

Your pages may however compete with one another in the search results, affecting your website’s search engine optimization.

It can easily be fixed by implementing hreflang tags on website. Below are the methods you can use to implement these tags in WordPress.

Also Check – 7 Ways to Improve Website’s User Experience (UX)

Method 1: Adding Hreflang Tag in WordPress Using a Multilingual Plugin

Using a multilingual plugin is the best way to create a multilingual WordPress website.

Using the same WordPress core platform, you can simply produce and manage content in various languages using multilingual WordPress plugin.

These plugins can help you to handle the technical aspects such as the implementing hreflang tags on website, allowing you to focus on generating content.

You’ll need to open a new browser window once you have created some pages or articles in several languages.

From your web browser’s menu, right-click and select “View Page Source”, a source code of the page or article will appear.

 Now, you must search for the hreflang tag to ensure that it is functioning.

To find the hreflang tag, press CTRL+F on your keyboard.

Recommended Plugin – Translate WordPress with GTranslate

Method 2: Adding hreflang manually into the WordPress website

This approach is for the users who do not manage translations on their websites using a multilingual plugin.

Adding hreflang to <head>

By editing your header.php file, you may add hreflang tags to your WordPress site without using a plugin. You’ll need to go to Appearance > Theme Editor or use FTP to get this file.

Once the file opens, locate the <head> opener and put the following code into it:

<link rel="canonical" href="http://example.com/content"/>
<link rel="alternate" hreflang="x-default" href="http://example.com/content"/>
<link rel="alternate" hreflang="en-us" href="http://example.com/content"/>
<link rel="alternate" hreflang="pt-PT" href="http://example.com/pt/content"/>

The tags need to be added to the English-language content in the above example. The x-default and English hreflang tags also direct users to the English-language version of the website.

Hreflang tags that redirect to the correct language versions of pages in Portuguese are not affected by this. Any additional hreflang tags for other languages on your website can be added.

Adding hreflang to Sitemap’s XML

You can update your site’s XML sitemap if you don’t want to edit your header.php file. This method ensures that Google finds your alternate-language pages and indexes them appropriately. Updating your sitemap also reduces the size of your web pages for faster loading times.

<url>
<loc>http://www.example.com/content</loc>
<xhtml:link rel="alternate" hreflang="es-es" href="http//www.example.com/es/content"/>
<xhtml:link rel="alternate" hreflang="pt-PT" href="http//www.example.com/pt/content"/>
</url>
<url>
<loc>http://www.example.com/es/content</loc>
<xhtml:link rel="alternate" hreflang="en-us" href="http//www.example.com/content"/>
<xhtml:link rel="alternate" hreflang="pt-PT" href="http//www.example.com/pt/content"/>
</url>

Editing your XML sitemap is beneficial for indexing, but it can be time-consuming. The sitemap may become bloated if you have a huge website. Implementing hreflang tags on website can also take longer to include in a sitemap compared to the other ways outlined above.

How to implement hreflang tag on blogger

Want to add hreflang tag in blogger? Let’s learn how to do it.

In any website, hreflang tag can be located between <head> and </head> tags.

Similarly, go to Dashboard and Template and place the hreflang tag between <head> and </head> tags in your blogger blog.

See the below example of hreflang tag for a site that uses English as its blog language.

<link rel="alternate" href="http://example.com” hreflang="en" />

All Language Tags

In case your blog is aiming at a specific geographic location, you can use the hreflang tag to indicate your location.

See the below example of hreflang tag for a site that is targeting Portuguese.

<link rel="alternate" href="http://example.com" hreflang="pt-PT”/>

You can easily change it to your own location code.

All-Region Codes

In case your website is multilingual, then use the below hreflang tag:

<link rel="alternate" href="http://example.com" hreflang="x-us" />

This will definitely increase your website’s ranking in the particular region or language you are targeting for.

Validating hreflang tags on website

Even if hreflang tags are used, they are frequently misapplied on multilingual websites. Implementing hreflang tags on website can be checked for accuracy by validating them.

Various internet tools are available for validating the tags. The information presented by these tools is similar, but it is presented in a different manner. Hreflang tag testing tool Merkle displays the tags on your website and tells you if they are correct.

Also Check- 10 Best Technical SEO Tools For Your Business

List of Implementing hreflang tags on website

achAcholi
aaAfar
afAfrikaans
akAkan
twAkan, Twi
sqAlbanian
amAmharic
arArabic
ar-BHArabic, Bahrain
ar-EGArabic, Egypt
ar-SAArabic, Saudi Arabia
ar-YEArabic, Yemen
anAragonese
hy-AMArmenian
frpArpitan
asAssamese
astAsturian
tayAtayal
avAvaric
aeAvestan
ayAymara
azAzerbaijani
banBalinese
balBalochi
bmBambara
baBashkir
euBasque
beBelarusian
bnBengali
bn-INBengali, India
berBerber
bhBihari
bfoBirifor
biBislama
bsBosnian
br-FRBreton
bgBulgarian
myBurmese
caCatalan
cebCebuano
chChamorro
ceChechen
chrCherokee
nyChewa
zh-CNChinese Simplified
zh-TWChinese Traditional
zh-HKChinese Traditional, Hong Kong
zh-MOChinese Traditional, Macau
zh-SGChinese Traditional, Singapore
cvChuvash
kwCornish
coCorsican
crCree
hrCroatian
csCzech
daDanish
fa-AFDari
dvDhivehi
nlDutch
nl-BEDutch, Belgium
nl-SRDutch, Suriname
dzDzongkha
enEnglish
en-UDEnglish (upside down)
en-AREnglish, Arabia
en-AUEnglish, Australia
en-BZEnglish, Belize
en-CAEnglish, Canada
en-CBEnglish, Caribbean
en-CNEnglish, China
en-DKEnglish, Denmark
en-HKEnglish, Hong Kong
en-INEnglish, India
en-IDEnglish, Indonesia
en-IEEnglish, Ireland
en-JMEnglish, Jamaica
en-JAEnglish, Japan
en-MYEnglish, Malaysia
en-NZEnglish, New Zealand
en-NOEnglish, Norway
en-PHEnglish, Philippines
en-PREnglish, Puerto Rico
en-SGEnglish, Singapore
en-ZAEnglish, South Africa
en-SEEnglish, Sweden
en-GBEnglish, United Kingdom
en-USEnglish, United States
en-ZWEnglish, Zimbabwe
eoEsperanto
etEstonian
eeEwe
foFaroese
fjFijian
filFilipino
fiFinnish
vls-BEFlemish
fra-DEFranconian
frFrench
fr-BEFrench, Belgium
fr-CAFrench, Canada
fr-LUFrench, Luxembourg
fr-QCFrench, Quebec
fr-CHFrench, Switzerland
fy-NLFrisian
fur-ITFriulian
ffFula
gaaGa
glGalician
kaGeorgian
deGerman
de-ATGerman, Austria
de-BEGerman, Belgium
de-LIGerman, Liechtenstein
de-LUGerman, Luxembourg
de-CHGerman, Switzerland
gotGothic
elGreek
el-CYGreek, Cyprus
klGreenlandic
gnGuarani
gu-INGujarati
htHaitian Creole
haHausa
hawHawaiian
heHebrew
hzHerero
hilHiligaynon
hiHindi
hoHiri Motu
hmnHmong
huHungarian
isIcelandic
idoIdo
igIgbo
iloIlokano
idIndonesian
iuInuktitut
ga-IEIrish
itItalian
it-CHItalian, Switzerland
jaJapanese
jvJavanese
qucK’iche’
kabKabyle
knKannada
pamKapampangan
ksKashmiri
ks-PKKashmiri, Pakistan
csbKashubian
kkKazakh
kmKhmer
rwKinyarwanda
tlh-AAKlingon
kvKomi
kgKongo
kokKonkani
koKorean
kuKurdish
kmrKurmanji (Kurdish)
kjKwanyama
kyKyrgyz
lolLOLCAT
loLao
la-LALatin
lvLatvian
lijLigurian
liLimburgish
lnLingala
ltLithuanian
jboLojban
ndsLow German
dsb-DELower Sorbian
lgLuganda
luyLuhya
lbLuxembourgish
mkMacedonian
maiMaithili
mgMalagasy
msMalay
ms-BNMalay, Brunei
ml-INMalayalam
mtMaltese
gvManx
miMaori
arnMapudungun
mrMarathi
mhMarshallese
mohMohawk
mnMongolian
sr-Cyrl-MEMontenegrin (Cyrillic)
meMontenegrin (Latin)
mosMossi
naNauru
ngNdonga
ne-NPNepali
ne-INNepali, India
pcmNigerian Pidgin
seNorthern Sami
nsoNorthern Sotho
noNorwegian
nbNorwegian Bokmal
nn-NONorwegian Nynorsk
ocOccitan
orOdia
ojOjibwe
omOromo
osOssetian
piPali
papPapiamento
psPashto
faPersian
en-PTPirate English
plPolish
pt-PTPortuguese
pt-BRPortuguese, Brazilian
pa-INPunjabi
pa-PKPunjabi, Pakistan
quQuechua
qya-AAQuenya
roRomanian
rm-CHRomansh
rnRundi
ruRussian
ru-BYRussian, Belarus
ru-MDRussian, Moldova
ru-UARussian, Ukraine
ry-UARusyn
sahSakha
sgSango
saSanskrit
satSantali
scSardinian
scoScots
gdScottish Gaelic
srSerbian (Cyrillic)
sr-CSSerbian (Latin)
shSerbo-Croatian
crsSeychellois Creole
snShona
iiSichuan Yi
sdSindhi
si-LKSinhala
skSlovak
slSlovenian
soSomali
sonSonghay
ckbSorani (Kurdish)
nrSouthern Ndebele
smaSouthern Sami
stSouthern Sotho
es-ESSpanish
es-EMSpanish (Modern)
es-ARSpanish, Argentina
es-BOSpanish, Bolivia
es-CLSpanish, Chile
es-COSpanish, Colombia
es-CRSpanish, Costa Rica
es-DOSpanish, Dominican Republic
es-ECSpanish, Ecuador
es-SVSpanish, El Salvador
es-GTSpanish, Guatemala
es-HNSpanish, Honduras
es-419Spanish, Latin America
es-MXSpanish, Mexico
es-NISpanish, Nicaragua
es-PASpanish, Panama
es-PYSpanish, Paraguay
es-PESpanish, Peru
es-PRSpanish, Puerto Rico
es-USSpanish, United States
es-UYSpanish, Uruguay
es-VESpanish, Venezuela
suSundanese
swSwahili
sw-KESwahili, Kenya
sw-TZSwahili, Tanzania
ssSwati
sv-SESwedish
sv-FISwedish, Finland
sycSyriac
tlTagalog
tyTahitian
tgTajik
tzlTalossan
taTamil
tt-RUTatar
teTelugu
kdhTem (Kotokoli)
thThai
bo-BTTibetan
tiTigrinya
tsTsonga
tnTswana
trTurkish
tr-CYTurkish, Cyprus
tkTurkmen
ukUkrainian
hsb-DEUpper Sorbian
ur-INUrdu (India)
ur-PKUrdu (Pakistan)
ugUyghur
uzUzbek
val-ESValencian
veVenda
vecVenetian
viVietnamese
waWalloon
cyWelsh
woWolof
xhXhosa
yiYiddish
yoYoruba
zeaZeelandic
zuZulu
Hreflang Tags

Frequently Asked Questions (FAQs)

How do I add hreflang tags?

There are serval methods of adding Hreflang tag in the website.

  • Using WordPress Plugin.
  • Add hreflang tag to <head>.
  • Add hreflang to XML sitemap.
Do I need hreflang tags?

If your website has an audience across the world or you want to target a particular geographic location then hreflang tags can benefit your website and digital marketing efforts.

How important is hreflang for SEO?

Hreflang tag can boost your SEO globally. The hreflang tag guarantees that the search result is provided in the native or chosen language rather than a different one, which is definitely an important aspect for SEOs.

How do I find my hreflang tag?

Search for any hreflang tag checker tool on Google, insert your website’s URL, and choose which search engine you want your hreflang tags to be detected by. After that, click “Test URL”.