[URGENT] Problem with SVG flag
-
Hi,
Hope someone could help me quickly..
I followed the instructions on this page https://polylang.pro/doc/can-i-use-my-own-flags-for-the-language-switcher/
PRobably did miss something because as you can see on my website, it’s like a missing file.
I uploaded my files fr_FR.svg and en_GB.svg here : /www/wp-content/polylang
and created a mu plugin named polylang-svg.php, here : /www/wp-content/mu-plugins.In there, i put this code
<?php
add_filter( ‘pll_custom_flag’, ‘pll_custom_flag’, 10, 2 );
function pll_custom_flag( $flag, $code ) {
$flag[‘url’] = “https://suzzikafe.fr/wp-content/polylang/{$code}.svg”;
$flag[‘width’] = 30;
$flag[‘height’] = 30;
return $flag;
}?>
And i refresh the URL modifications into the polylang settings .
It’s broken because i can see the “French” label just next to a missing file logotype.
Could someone have the solution ?
Thanks a lot,
RomainThe page I need help with: [log in to see the link]
- The topic ‘[URGENT] Problem with SVG flag’ is closed to new replies.