The [lango7_lang] shortcode

Free4 min read

All guides

[lango7_lang] shows or hides content per language.

Attributes

  • code="…": show only in these languages.
  • not="…": hide in these languages.
  • Both take a comma-separated list of language codes or folder names. source means your site’s own language.

Examples

[lango7_lang code="fr,de"]Shown in French and German[/lango7_lang]

[lango7_lang not="source"]Shown on every translated page[/lango7_lang]

[lango7_lang code="source"]Only on the original[/lango7_lang]

Good to know

  • With no attribute, the content always shows.
  • Shortcodes inside it run as normal.
  • Hidden content isn’t sent to the page, so it isn’t translated.