Plugin Directory

Changeset 1982945

Timestamp:
11/30/2018 12:17:11 AM (6 years ago)
Author:
pratikthink
Message:

Add support for Yoast open graph

Location:
chl-change-html-lang/trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • chl-change-html-lang/trunk/README.txt

    r1879579 r1982945  
    11=== CHL-Change HTML Lang ===
    2 Contributors: pratikthink
    3 Tags: html, doctype, language attributes, html lang, header, chl-change-html-lang, seo plugin, pzerone
     2Contributors: pratikthink
     3Tags:
    44Requires at least: 4.6
    55Tested 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
     6Requires PHP: 5.2
     7Stable tag: 1.0.3
     8License: GPLv3 or later
     9License URI: http://www.gnu.org/licenses/gpl-3.0.html
    910
    10 CHL-Change HTML Lang is a simple WordPress plugin that change html language attribute(language_attributes();) value in header.
     11CHL-Change HTML Lang is a simple WordPress header.
    1112
    1213== Description ==
    13 *CHL-Change HTML Lang is a simple WordPress plugin that change html language attribute(language_attributes();) value in header.*
     14*CHL-Change HTML Lang is a simple WordPress language attribute(language_attributes();) value in header.*
    1415
    1516Many 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**.
    1617For 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.
     18You 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.
    1819**After activating this plugin simply visit *Settings → General* and change HTML lang tag.**
     20
     21
     22
     23
    1924
    2025== Installation ==
     
    4045
    4146== Changelog ==
     47
     48
     49
     50
     51
     52
     53
     54
     55
    4256= 1.0 =
    4357* Initial Release
    44 = 1.0.1 =
    45 * Small bug fixed
    46 = 1.0.2 =
    47 * Bug Fixed
    48 
    49 == Upgrade Notice ==
    50 = 1.0 =
    51 Initial Release. Visit Settings → General after activating.
    52 = 1.0.1 =
    53 * Small bug fixed
    54 = 1.0.2 =
    55 * Bug Fixed
  • chl-change-html-lang/trunk/chl-change-html-lang.php

    r1879579 r1982945  
    1010 * Plugin Name:       CHL-Change HTML Lang
    1111 * Plugin URI:        https://www.gyanchowk.com/chl-change-html-lang
    12  * Description:       A simple WordPress plugin that change html language attribute value in header.
    13  * Version:           1.0.2
     12 * Description:       A simple header.
     13 * Version:           1.0.
    1414 * Author:            P. Kumar
    1515 * 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
    1817 * Text Domain:       chl-change-html-lang
    1918 */
     
    7271    <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">
    7372    <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 &quot; &quot; 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 &quot; &quot; before and after. It will be automatically added.', 'chl-change-html-lang' ) ?></p>
    7574    <?php
    7675}
     
    8281}
    8382add_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.