My new Wordpress website is for US users.
In search console >search traffic> International Targeting I get a message "Your site has no hreflang tags"
searching google, I came across this script http://cbutterworth.com/simple-php-script-adding-hreflang-tag/ from Chris. so I added it to my header.php like this:
Code: Select all
<link rel=”alternate” href=”https://www.mysite.com<?php echo parse_url($_SERVER[‘REQUEST_URI’],PHP_URL_PATH); ?>” hreflang=”en-us” />
I tested with http://www.technicalseo.info/seo-tools/hreflang/ and I get "Default language tag not existing (en)"
Please drop some advice, my knowledge in scripting is limited.
10x