@hurghada_seagull

Как исправить отображение шрифта меню в ВордПресс?

Помогите мне как чайнику. У меня сайт на вордпрессе: www.hurghadaseagull.com
На главной странице есть кнопки меню. Меню на английском. С недавнего времени я заметила, что странно отображает символ "&".
Там где раньше было Wine & Dine теперь отображает - Wine & Dine
Sports & Fun - Sports & Fun
Groups & Meetings - Groups & Meetings
Я в админке вордпресс нашла в Appearance - Menus эти все меню, пыталась поменять. Но ничего не сохраняет.
8bbefeb4d6604541b53f47b138695295.bmp
  • Вопрос задан
  • 130 просмотров
Решения вопроса 1
@ommunist
Делаю и поддерживаю мультиязычные сайты
https://yootheme.com/support/question/97308
In my tests I could slightly narrow down the problem.

A ampersand character followed by a standard space is transformed to a literal HTML entity &.

But once there is any other character following it, the & is not transformed. An non-breaking space after the & would also prevent the tansformation.

Please try the following workaround:

Edit the menu item.

Remove the space character immediataly after the & and instead type a non-breaking space immediately behind the & character:

To get a non-breaking space on Windows:
Hold down the key ALT then type 0160 (Alt+0160) on the number pad.

To get a non-breaking space on Mac OS:
Hold down the key alt and once press the space bar.

Save the menu.

Reload the page in the frontend and test.

нечайниковский способ - обернуть функции вывода меню в htmlspecialchars_decode()
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы