trustkeron.blogg.se

Language switcher widget wordpress
Language switcher widget wordpress








language switcher widget wordpress
  1. LANGUAGE SWITCHER WIDGET WORDPRESS ARCHIVE
  2. LANGUAGE SWITCHER WIDGET WORDPRESS CODE

If you activate and specify the right regex for each language, there will be no link on the English ISO code as we are already visiting the page in the English version (thus a link will appear for fr and nl that will forward us to the translated versions, but not for en).įor the example URLs used above, the regex for each language would look like: The regex has only one purpose: to avoid displaying a link to the same page in the same (current) language.įor example, suppose we are now visiting the page, and the language switcher looks like en | fr | nl. Read more about this topic here: Regex setting (“about us” page translated into French) optionally the regex that will deduce the current language from the URLĪbout your URLs: it is strongly recommended (for SEO purposes) to have unique URLs for each page in each language and to follow a logical URL pattern for each language that is easily understood by search engines.įor example, you could have the French and Dutch translated pages of your site all preceded respectively by fr/ and nl/, as if they were in separate subdirectories:.the home URL for that language (,, etc.).the language name (french, english, etc.).the ISO code (“fr” for French, “en” for English, etc.).Flags don’t map onto these permutations.”įor each language that you want to add, you should specify: Numerous countries use the same language as another country, and numerous countries have more than one official language. “Flags represent countries, not languages. Note about using flags: the w3 community doesn’t recommend using flags to indicate languages.

LANGUAGE SWITCHER WIDGET WORDPRESS ARCHIVE

If you want to use the flags, copy the appropriate flag into the wp-content/plugins/simple-language-switcher/flags folder. A set of available flag icons (from FamFamFam) can be found in the archive file wp-content/plugins/simple-language-switcher/flags/famfamfam_flag_icons.zip. You can extract a flag from that archive and paste it into the wp-content/plugins/simple-language-switcher/flags folder (perhaps you will have to rename it to the appropriate language code). Flags: this will display flag icons for the languages.Here you can chose the display style for your language switcher Go to your administration interface and click on the menu Settings > Simple Language Switcher Main Settings section

language switcher widget wordpress

  • interconnect your posts in different languages.
  • customize the output of the language switcher.
  • The settings in the admin interface allow you to: Then add the CSS rules below into your main CSS file: #page Settings in your themeĭisplay the language switcher wherever you want in your theme calling the function simple_language_switcher() (check that the function exists first).įor example, if you are using a child theme of the default WordPress theme, you could add the following code right under the #page element in the header.php file: The easiest way to display the language switcher is to drag and drop the Simple Language Switcher Widget into your sidebar under Appearance > Widgets 2. Instructions Displaying the language switcher 1.
  • You want to be able to interconnect your posts in different languages, without the requirement to have each post translated into all the other languages.
  • You’re looking for a very simple, lightweight plugin (so simple that you can quickly dive into the code and modify it yourself for it to suit your needs).
  • The features offered by this plugin is all you need.
  • This is not an attempt to make a plugin offering a complete multilingual solution for your multisite network installation you will find better plugins out there for this.
  • Configure the plugin in the menu Settings > Simple Language Switcher.
  • Search for “simple language switcher” through the menu Plugins > Add New in your WordPress administration interface.
  • I recommend you to use this plugin over the WordPress multisite feature, which lets you have one site per language under a single WordPress installation.
  • Generates rel=”alternate” hreflang=”x” links for SEO purposes.
  • Interconnect your post in different languages (avoids the user to be redirected to the home page when switching to another language).
  • Current language detection with regex: avoids displaying a link to the same page in the same language.
  • You can easily customize the display of your language switcher (language ISO codes, language names or flags).
  • This is not a back-end (admin interface) language switcher. This plugin allows your visitors to switch the language of your site. Simple Language Switcher is a very simple and lightweight plugin that allows you to display a language switcher on your site.

    language switcher widget wordpress

    A simple and lightweight plugin that displays a customizable language switcher.










    Language switcher widget wordpress