Skip to content

OnTheGoSystems/Text-Menu-Item-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Text Menu Item Template (for WPML Language Switcher)

This custom WPML language switcher template will display only raw text for menu item label. It does not contain any HTML tag. This is required for compatibility with some custom themes which are filtering the label (stripping tags or truncating).

Note: As we have no HTML tag in this template, the flag option is disabled.

Installation

  • Copy this template folder into {your-theme-folder}/wpml/templates/language-switchers/.
  • Go to the WPML -> Language page and scroll to the "Menu language switcher" section.
  • Add or edit a language switcher for menus
  • Use the "Language switcher style" dropdown to select the "Your theme - Text Menu Item" option (where "Your theme" is the name of the site's active theme) and save.

About

A language switcher template for menus free of any HTML tags

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages