Last active
August 29, 2015 14:20
-
-
Save Phoenix2k/9850698c033c4fbaacd7 to your computer and use it in GitHub Desktop.
WordPress tags to enable styling languages via CSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html <?php language_attributes(); ?>> | |
<head> | |
<meta charset="<?php bloginfo('charset'); ?>" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
</head> | |
<body> | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html[lang='fi'] .some-class { | |
/* Custom CSS for Finnish */ | |
} | |
html[lang='en-GB'] .some-class { | |
/* Custom CSS for English */ | |
} | |
html[lang='sv'] .some-class { | |
/* Custom CSS for Swedish */ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:lang(fi) .some-class { | |
/* Custom CSS for Finnish */ | |
} | |
:lang(en-GB) .some-class { | |
/* Custom CSS for English */ | |
} | |
:lang(sv) .some-class { | |
/* Custom CSS for Swedish */ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang=”fi”> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
</head> | |
<body> | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment