Change the Polylang flag
-
Hello Polylang Support,
I have tried to change the flags on my client’s website (or increase the size of it – that was the main goal).
I have read many forums, and your reference page as well here: https://polylang.pro/doc/filter-reference/#pll_custom_flagI have added the following code to Scripts Organizer with no luck. Nothing has changed.
<?php
add_filter( ‘pll_custom_flag’, ‘pll_custom_flag’, 10, 2 );
function pll_custom_flag( $flag, $code ) {
$flag[‘url’] = “https://2100labs.dev.peterteszary.com/wp-content/polylang/customflags/{$code}.svg”;
$flag[‘width’] = 32;
$flag[‘height’] = 22;
return $flag;
}
?>Can you help me with this?
Thanks,
PeterThe page I need help with: [log in to see the link]
- The topic ‘Change the Polylang flag’ is closed to new replies.