How to integrate the language selector in a WordPress site?

Home Forums WordPress Plugins Language Switcher How to integrate the language selector in a WordPress site?

Viewing 0 reply threads
  • Author
    Posts
    • #7647
      Rafasashi
      Keymaster

      There is 3 ways to integrate the switcher in your site.

      1 – If you need to add the language switcher in your site you can use the widget or the shortcode [language-switcher].

      The shortcode also works inside post contents if you need to show the switcher only for some pages.

      2 – To add the languages in your menu you can check the menus from the backend in Languages > Settings > Show in Navigation Menus

      3 – To add the shortcode directly in your theme you can use the following PHP code:

      <?php echo do_shortcode('[language-switcher]'); ?>

      • This topic was modified 4 years, 5 months ago by Rafasashi.
Viewing 0 reply threads
  • The topic ‘How to integrate the language selector in a WordPress site?’ is closed to new replies.