Hi,
I’ve managed to add a custom menu in the top bar by following another thread. My website is currently in 2 languages. Hence, I need the top bar’s custom menu to be translated as well. How do I add a different menu to the topbar when the website is in Chinese?
Do I register another menu the same way I added the custom menu? And call it “Topbar Menu Chinese”? I got the following from another thread, but I don’t think I have the code correct, nor do I know where to put it. Can someone please help?
$language = get_locale();
if ($language == ‘zh_CN’) {
echo “topbar-menu-chinese”;
}
My site: https://www.huiji.com.sg/