Не могу создать меню на русском в wordpress 3.4 (сам вордпресс русский, с офиц. сайта). Если значения текст ссылки меню указываю на английском, то всё нормально создаётся. Но если указывать на русском языке, то на сайте ничего не высвечивается (просто идёт как пустой пункт меню). Когда я добавляю к русскому слову какой нибудь символ (скажем круглую скобку), то в пункте меню эта только скобка и остаётся, а всё русское слово вырезается. Использую шаблон locus (в нём то и вся загвоздка, так как на других шаблонах русское меню отображается нормально). Может кто сталкивался с подобным и как это решается?
|
1 answer
The answer is simple as ever: UTF-8 .
<meta charset="utf-8">
- I have already written the utf-8 encoding in the template in header.php and it does not work. In addition to the template header.php still need to prescribe where? Is it really in the encoding? I think if the encoding were wrong, it would output Russian, only iskareozhenno, and so it cuts out Russian words in general and outputs nothing - Arthur Lodenev
- Insert the Russian text manually, i.e. changing the code. - kandi
- In the template header.php, these are the elements responsible for the menu <div id = "menu"> <? Php locus_nav (); ?> </ div> The locau_vav function loads another function, and that in turn wp_nav_menu. A little I can not find where you can manually register the name of the menu items? - Arthur Lodenev
- What does html code look like in the interval between <div id = "menu"> </ div> when viewed in a browser - kandi
- <div id = "menu"> <ul id = "menu-% d0% bc% d0% b5% d0% bd% d1% 8e1" class = "menu"> <li id = "menu-item-879" class = "menu-item menu-item-type-custom menu-item-object-custom menu-item-879"> <a href="#home"> (Home) </a> </ li> <li id = "menu-item-880" class = "menu-item menu-item-type-custom menu-item-object-custom menu-item-880"> <a href="#about"> About </a> </ li> <li id = "menu-item-889" class = "menu-item-menu-item-type-custom-menu-item-object-custom menu-item-889"> <a href="#contact"> Contactus </a> </ li> </ ul> </ div> </ div> It is strange that the word Home is in html, but it does not appear on the site - Arthur Lodenev
|