เพิ่มตัวสลับภาษา

ฟรี3 นาทีในการอ่าน

คู่มือทั้งหมด
สำหรับเจ้าของเว็บไซต์

Visitors change language with the switcher. Each link goes to the same page in the other language, and search engines can follow it.

Pick a style

Go to Translate → Settings → Switcher. Every shortcode is listed with a live preview, so you can copy the one you want into any page, widget or template.

Other ways to add it

  • Block editor: add the Language Switcher block and choose its style.
  • Menu: Appearance → Menus, then add it from the Language switcher box. It takes your theme’s menu style.
  • Bricks: add the Language Switcher element.
  • PHP: <?php lango7_switcher( array( 'style' => 'globe' ) ); ?>

ข้อควรรู้

  • The dropdown and globe close when you click outside them or press Escape. They still open and close without JavaScript.
  • Previews in Settings use the admin styles. On your site the switcher takes your theme’s fonts and colours.
  • Draft languages (Pro) are left out of the switcher until they go live.