Forums
Forums / Plugin: Orbit Fox: Duplicate Page, Menu Icons, SVG Support, Cookie Notice, Custom Fonts & More / [FIXED] Bug in localized sites
(@tortoll)
7 years, 3 months ago
Hi,
I have a WP network with sites in different languages. I observed that the Font Awesome menus wouldn’t work in a site in Spanish. I found that it was rendering the following HTML:
<script type='text/javascript'> /* <![CDATA[ */ var menú_iconos = {"icons":["dashicons-menu", ... /* ]]> */ </script>
As you can see, instead of “menu_icons” was rendering “menú_iconos”, which caused the whole script to fail.
It can be fixed replacing this line in themeisle-companion/obfx_modules/menu-icons/init.php:
themeisle-companion/obfx_modules/menu-icons/init.php
$this->name = __( 'Menu Icons', 'themeisle-companion' );
with this one:
$this->name = 'Menu Icons';
I suspect that this is happening also in other modules.
(@raducan)
7 years, 2 months ago
Hi @tortoll,
Can you share a screenshot where the script appears? I tried pinpointing that script testing out with WP in Spanish but couldn’t find it.
Thank you in advance for your reply.
The topic ‘[FIXED] Bug in localized sites’ is closed to new replies.