![]() On the right side, select the language you want to add from "List of Configured Languages" and click on " Edit" as shown below:.Go to Dashboard > Settings > Languages and select " Languages" tab.To check what name to use for a specific language, follow these steps: If, for example, we want to display the Language Menu as text that contains both language name and 2-letter code and also force it to be in bold style, we would call qtranxf_generateLanguageSelectCode($args) function like this: 'custom', We also have the following placeholders available: Inside ‘format’, we can define our HTML code that should be displayed for each language. With ‘custom’ type, we can specify what to display by using ‘format’ key. The types are all self-explanatory, except for the ‘ custom’ type. We can specify how the Language Menu is displayed by using the following types: 'type' value Different types of language switcher / selector menu No matter which one we use to display the Language Menu, we have different types of menu to choose from. The way we use the function is like this: 'image' 'id' – id of widget, used for CSS purposes.'format' – only used when 'type' is 'custom'.'type' – possible values are: 'text', 'image', 'both', 'dropdown' and 'custom'.The function accepts $args array argument with the following keys: We display the menu by calling the qTranslate-X native qtranxf_generateLanguageSelectCode($args) function. For example, to display the Language Menu at the top of the page you would most likely need to edit header.php file. If you want the Language Menu to be displayed at a specific location in the template, we need to modify the appropriate template files. Customize it by using options the Widget gives you:ĭisplaying Language Menu by calling a function inside a template.From “ Available Widgets” find “ qTranslate Language Chooser” and drag it to the sidebar on the right.If you want the Language Menu to be displayed in a sidebar, this is the way to go. ![]() Another solution without changing the Flag Image Path - by using CSS.3.) Changing Flag Image Path for qTranslate Plugin. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |