Custom menu with gtranslate function
Dec 4, 2018 3:14 am by luqman305
Dec 4, 2018 3:14 am by luqman305
HI.
I am very newbie with wordpress and editing plugins.
I have custom menu (English, Chinese (Simplified)) using html that I want it to call the gtranslate function for each language but it seems like it does not working. I dont know how to run the gtranslate with my custom menu.please help.
HTML codes:
<li class="li-eng"><i class="sl-flag flag-usa"><div id="usa"></div></i> <span class="active"><?php _e('English', 'gtranslate'); ?></span></li>
<li class="li-zh"><i class="sl-flag flag-de"><div id="chinese"></div></i> <span><?php _e('Chinese (Simplified)', 'gtranslate'); ?></span></li>
Re: Custom menu with gtranslate function
Dec 4, 2018 6:41 pm by Yana
Dec 4, 2018 6:41 pm by Yana
Hi,
If you wish to add GTranslate in menu you can also use Shortcode in Menus plugin with [gtranslate] shortcode.
Install Shortcode in Menus plugin from Wordpress repository (Plugins → Add new and search for Shortcode in Menus)
Go to Appearance → Menus and on the left part you will see Shortcodes
Put [gtranslate] shortcode in it and add to menu
Set Show in menu option to None in GTranslate settings page
SIMILAR TOPICS
Gtranslate Multisite | Feb 12, 2019 7:27 am | Replies: 1 | Post by: infact_dat |
Gtranslate: Error with number | Feb 20, 2019 1:20 am | Replies: 1 | Post by: infact_dat |
GTranslate 3.7.4, Joomla 3.9.3 - doGTranslate is not defined | Feb 22, 2019 12:34 pm | Replies: 1 | Post by: oase |
Add-on gtranslate no longer works | Feb 2, 2019 6:01 am | Replies: 1 | Post by: DarylDixon |
Instragram and Gtranslate...!!!! | Dec 19, 2018 11:18 am | Replies: 1 | Post by: zackfernandes |