Related styles:
-
Always display target link language
Installs:Created: Jun 25, 2009Last Updated: Jun 26, 2009 -
Created: May 30, 2010Last Updated: Sep 13, 2015
-
Created: Aug 05, 2012Last Updated: Aug 06, 2012
-
Created: May 24, 2009Last Updated: Jun 13, 2012
-
Created: Feb 17, 2012Last Updated: Feb 18, 2012
-
Created: May 01, 2011Last Updated: May 11, 2015
-
Created: Sep 01, 2014Last Updated: Jan 18, 2017
-
Created: Aug 09, 2013Last Updated: Aug 10, 2013
-
Created: Feb 16, 2014Last Updated: Nov 21, 2015
Perfect display target link language (hreflang)
Description:
Because the "lang" attribute isn't always informed, I write too Always display target link language , who always display hreflang (when the lang attribute is not specified).
For example :
- when the text is english, and the target on french => (fr)
- when the text is english, and the text of the link and the target are in french => (fr)
- when the text is englsih, and the text of the- link is french and the target is german => (de)
This rules take in charge all target language, but to add a redaction language, just add declaration with the language name.
Because the language can be specified with an attribute Regional (e.g. "en-us"), I use CSS3 selector who allow to specify "who start by" : ^. So it can make problems on browser who don't support CSS3 (but yes, firefox 3.* support CSS3)
For more explications, look at http://delavy.h
First install FreeStyler to use this style.
If you already installed it, please, make sure this site is allowed to run JavaScript.But you can download Freestyler for other browsers and apply styles there!
Applies to:
all URLs