• I changed polylang flags with new one and it shows correctly, but I don’t know how to change size.
    I found this on Polylang site, but I don’t know how to implement:

    add_filter( ‘pll_custom_flag’, ‘pll_custom_flag’, 10, 2 );

    function pll_custom_flag( $flag, $code ) {
    $flag[‘url’] = “http://mysite.com/wordpress/wp-content/polylang/{$code}.svg”;
    $flag[‘width’] = 32;
    $flag[‘height’] = 22;
    return $flag;
    }

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Polylang flag size again’ is closed to new replies.