Looking to utilize hreflang on multilanguage website. Here's the scenario:
Initially there were 3 versions (out of date, non-SEO compliant, Flash included) of the same website. English, Korean, Chinese. We updated the English version to a brand new (SEO friendly) website, while leaving the Korean & Chinese version the same.
I've employed the following code in both the sitemap & on the headers of the non-English versions:
Sitemap:
<url>
<loc>http://example.com</loc>
<xhtml:link
rel="alternate"
hreflang="zh"
href="http://example.com/cn"
/>
<xhtml:link
rel="alternate"
hreflang="ko"
href="http://example.com/kr"
/>
</url>
The header for the non-English versions:
<link rel="alternate" hreflang="zh-us" href="http://example.com/cn"/>
<link rel="alternate" hreflang="ko-us" href="http://example.com/kr"/>
Do I need to add the hreflang tag to the new updated English version as well? Is there anything else I need to add to the international versions?
Many thanks in advance for assistance!
You don't need this code in both sitemap and header. Use it only in one place. I recommend you to remove it from the sitemap.
Also, you need to have the links to all the language versions on all pages in different language. For example, you should put:
<link rel="alternate" hreflang="en" href="http://example.com/en" />
<link rel="alternate" hreflang="ko-us" href="http://example.com/kr" />
<link rel="alternate" hreflang="zh-us" href="http://example.com/cn" />
Or, even better, you can make English default:
<link rel="alternate" hreflang="x-default" href="http://example.com/en" />
<link rel="alternate" hreflang="ko-us" href="http://example.com/kr" />
<link rel="alternate" hreflang="zh-us" href="http://example.com/cn" />
For reference, check this link: https://support.google.com/webmasters/answer/189077?hl=en
Related
I've an issue with hreflang tag. I'm working in a multilanguage site that have two languages, italian and english. I'd like to set automatically main page language in english for all the countries different from Italy.
I put this code on main page of my website but it seems doesn't work
<link rel="alternate" href="http://example.com/en/index.php" hreflang="en" />
Anyone can help me, please?
Yea the answer is using “en-us” would work.
What is the purpose of this menu? Are there supposed to be more options than no style and basic page style? Can I add more Styles? Does this have a history?
It's the website that provides the stylesheets. Some websites provide a choice of stylesheets which can be toggled between using this menu. Here's the documentation which gives the following example:
<link href="default.css" rel="stylesheet" type="text/css" title="Default Style">
<link href="fancy.css" rel="alternate stylesheet" type="text/css" title="Fancy">
<link href="basic.css" rel="alternate stylesheet" type="text/css" title="Basic">
In one of my magento website I have added favicon using
magento admin panel > system > configuration > design > HTML head > favicon icon
It was displaying nicely in magento home page but not showing in inner pages. I have changed the current configuration scope to store view and did the same proccess. still it is not working. I hacve cleared caches and re-indexed. but it is not working.
Why is it so? How can I solve this?
Thank you.
# jatinder kumar you may need this only?
<link rel="icon" href="http://navaani.in/media/favicon/stores/17/favicon_1.png" type="image/x-icon">
<link rel="shortcut icon" href="http://navaani.in/media/favicon/stores/17/favicon_1.png" type="image/x-icon">
<link rel="shortcut icon" href="http://navaani.in/skin/frontend/base/default/images/dresscode_images/favicon.ico">
<link rel="apple-touch-icon" href="http://navaani.in/skin/frontend/base/default/images/dresscode_images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="http://navaani.in/skin/frontend/base/default/images/dresscode_images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="http://navaani.in/skin/frontend/base/default/images/dresscode_images/apple-touch-icon-114x114.png">
<link href="//fonts.googleapis.com/css?family=Amaranth:200,300,400,500,600,700,800" rel="stylesheet" type="text/css">
Ask me if you want more. Thank you.
We experienced similar. We resolved this (if I'm understanding your issue correctly) by overwriting the default favicon.ico in the root folder with ours.
Note, browser caching in relation to favicon.ico is extremely zealous :) As such, you will probably only see the change by opening the site in a browser you haven't opened the site in previously or on a different machine.
I am trying to add an apple-touch-icon to my SharePoint 2010 site. So far I had no luck with SharePoint sites. I added the following code to mater page file. But The same links works on regular web application sites. I am very new to SharePoint. Is there anybody who has had success with it? If so, could you please help me?
Thanks in advance,
Add this code in your masterpage :
<link rel="apple-touch-icon" href="touch-icon-iphone.png" />
If you don't want the default glass effect add this one :
<link rel="apple-touch-icon-precomposed" href="touch-icon-iphone.png" />
This is for the new generation with high resolution:
<link rel="apple-touch-icon" sizes="72x72" href="touch-icon-ipad.png" />
<link rel="apple-touch-icon" sizes="114x114" href="touch-icon-iphone4.png" />
Apple's source here
<link href="http://www.../default.css" rel="stylesheet" type="text/css" />
Could not edit 'http://...' because it is not in the Web site.
I get this error box every five minutes, how do I get it to stop telling me this?
<link runat="server" id="defaultCss" rel="stylesheet" type="text/css"/>
and on your code behind
defaultCss.attributes.add("href","http://www..../default.css");
if your css is in your website then you can use
ResolveUrl("~/default.css")
to get the url
or probably best practice is to add it to your app theme folder http://msdn.microsoft.com/en-us/library/ykzx33wh.aspx and then not only will it be automatically added but you'll get intellisense
Well, seems like it's because you're including an href that points to a URL, instead of a relative web path.
Instead of
<link href="http://www.mysite.com/styles/default.css" rel="stylesheet" type="text/css"/>
use
<link href="/styles/default.css" rel="stylesheet" type="text/css"/>
Also, make sure your closing
/>
is valid in terms of your Doctype.