Changeset 1982945
- Timestamp:
- 11/30/2018 12:17:11 AM (6 years ago)
- Location:
- chl-change-html-lang/trunk
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
chl-change-html-lang/trunk/README.txt
r1879579 r1982945 1 1 === CHL-Change HTML Lang === 2 Contributors: pratikthink 3 Tags: html, doctype, language attributes, html lang, header, chl-change-html-lang, seo plugin, pzerone2 Contributors: pratikthink 3 Tags: 4 4 Requires at least: 4.6 5 5 Tested up to: 5.0 6 Stable tag: 1.0.2 7 License: GPLv2 or later 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 6 Requires PHP: 5.2 7 Stable tag: 1.0.3 8 License: GPLv3 or later 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html 9 10 10 CHL-Change HTML Lang is a simple WordPress plugin that change html language attribute(language_attributes();) value inheader.11 CHL-Change HTML Lang is a simple WordPress header. 11 12 12 13 == Description == 13 *CHL-Change HTML Lang is a simple WordPress plugin that change htmllanguage attribute(language_attributes();) value in header.*14 *CHL-Change HTML Lang is a simple WordPress language attribute(language_attributes();) value in header.* 14 15 15 16 Many of us use WordPress(Admin area UI) in the English version but write their content in another language. So by default WordPress uses English(en-US) language attribute for `<?php language_attributes(); ?>` used in **header.php**. 16 17 For example - If you write your content in Hindi language but use WordPress(Admin area UI) in English, your html language attribute must be **hi** or **hi-IN** for many reasons including SEO but WordPress echo html language attribute of installed locale version (en-US by default). 17 You can't change HTML language attribute directly so I created this plugin(CHL-Change HTML Lang) that allow you to change HTML language attribute from the dashboard.18 You can't change HTML language attribute directly so I created this plugin(CHL-Change HTML Lang) that allow you to change HTML language attribute from the dashboard. 18 19 **After activating this plugin simply visit *Settings → General* and change HTML lang tag.** 20 21 22 23 19 24 20 25 == Installation == … … 40 45 41 46 == Changelog == 47 48 49 50 51 52 53 54 55 42 56 = 1.0 = 43 57 * Initial Release 44 = 1.0.1 =45 * Small bug fixed46 = 1.0.2 =47 * Bug Fixed48 49 == Upgrade Notice ==50 = 1.0 =51 Initial Release. Visit Settings → General after activating.52 = 1.0.1 =53 * Small bug fixed54 = 1.0.2 =55 * Bug Fixed -
chl-change-html-lang/trunk/chl-change-html-lang.php
r1879579 r1982945 10 10 * Plugin Name: CHL-Change HTML Lang 11 11 * Plugin URI: https://www.gyanchowk.com/chl-change-html-lang 12 * Description: A simple WordPress plugin that change html language attribute value inheader.13 * Version: 1.0. 212 * Description: A simple header. 13 * Version: 1.0. 14 14 * Author: P. Kumar 15 15 * Author URI: https://profiles.wordpress.org/pratikthink 16 * License: GPL-2.0+ 17 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt 16 * License: GPL v3 18 17 * Text Domain: chl-change-html-lang 19 18 */ … … 72 71 <input name="chl_custom_lang" id="chl-tag-sid" value="<?php echo get_option( 'chl_custom_lang' ); ?>" class="chl-tag-sclass" type="text" maxlength="12"> 73 72 <p class="description" id="chl-tag-description"><?php _e( 'Add your custom html language attribute. eg. en, en-US, en-GB, hi, hi-IN etc.', 'chl-change-html-lang' ) ?></p> 74 <p class="description" id="chl-tag-description"><?php _e( ' BE CAREFUL.Do not use " " before and after. It will be automatically added.', 'chl-change-html-lang' ) ?></p>73 <p class="description" id="chl-tag-description"><?php _e( 'Do not use " " before and after. It will be automatically added.', 'chl-change-html-lang' ) ?></p> 75 74 <?php 76 75 } … … 82 81 } 83 82 add_filter('language_attributes', 'chl_change_html_lang_tag'); 83 84 85 86 87 88 89 90 91 92 93 94 95
Note: See TracChangeset
for help on using the changeset viewer.