• Hello there,

    I was wondering if you can tell me how I can land attribute to <article> or <main> tags of the post.

    return str_replace('lang="' . get_bloginfo('language') . '"', 'lang="' . $lf_language_code . '"', $language_attributes);

    What changes can I make that this plugin starts adding lang attribute to article or main tag instead of to HTML.

    Since, other sections like navigation, sidebar, and footer will still remain in the default language.

    Thanks,

    • This topic was modified 2 years, 11 months ago by Amulya Shahi.
  • The topic ‘HTML5 Lets you add lang attribute to’ is closed to new replies.