admin管理员组文章数量:1393064
I am very newbie with WordPress and editing plugins.
I have a 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.
<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>
I am very newbie with WordPress and editing plugins.
I have a 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.
<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>
Share
Improve this question
edited Dec 5, 2018 at 22:48
fuxia♦
107k39 gold badges255 silver badges459 bronze badges
asked Dec 4, 2018 at 4:11
Luqman305Luqman305
11 silver badge2 bronze badges
2
- You using some plugin for this or code? – dado Commented Dec 4, 2018 at 6:32
- hi. yes.i am using gtranslate plugin. the plugin widget works fine, but i try to implement their function inside my own custom design html <li> tag. – Luqman305 Commented Dec 4, 2018 at 7:08
1 Answer
Reset to default 0Link menu item with URL = #, Link Text = Global and add CSS Classes = gtranslate-parent to the newly created menu item. After that you can configure GTranslate and set Widget look = (Flags with language name/Flags with language code/Language names/Language codes) and it will appear as a dropdown when you hover on the newly created menu item.
本文标签: pluginsGtranslate function with custom menu
版权声明:本文标题:plugins - Gtranslate function with custom menu 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744649620a2617606.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论