language - How can I set different html lang attribute for different countries?

My WordPress theme header.php html language attitude<!DOCTYPE html><html <?php language_attributes(); ?>

My WordPress theme header.php html language attitude

<!DOCTYPE html>
<html <?php language_attributes(); ?>>

All page html language attitude :

<html lang="en-US">

But I have some pages for different countries. I want to use different html lang attitude code for each country page with single header.php

For example:

English page language attitude : <html lang="en">

Portuguese page language attitude : <html lang="pt">

Spanish page language attitude : <html lang="es">

Indonesian page language attitude : <html lang="id">

Vietnamese page language attitude : <html lang="vi">

etc...

How can I do it?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742309769a4419657.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信