Plugin Author
sbouey
(@sbouey)
You have set in the Falang settings the flags size 30×30
yes it’s set as 30×30, that’s why I was hoping it would be fetched by the shortcode with that size, but it isn’t and they are shown at their original size
Plugin Author
sbouey
(@sbouey)
I have tested and it’s work on my test site
i have set in Falang settings 30 and 15 pixels (only the number not with px)
in the filewp-content\plugins\falang\src\Falang\Core\Language_Switcher.php line 56
$width = Falang()->get_model()->get_option('flag_width','16');
$height = Falang()->get_model()->get_option('flag_height','11');
the width and height are get and use in the line 102
'<li><a class="%1$s" href="%2$s"><img src="%3$s" alt="%4$s" width="%5$spx" height="%6$spx"/>%7$s</a></li>',
….perhaps I should point you to the page where the shortcode is. You can see here that the flag is in full size.
Plugin Author
sbouey
(@sbouey)
it’s due to your template css rule
.row .col img:not([srcset]) {
width: auto;
}
how can I tweak that code? So far, the only way to reduce the image is by creating a huge column-padding of the container, like 15%
Plugin Author
sbouey
(@sbouey)
Hi, css is not my best , perhaps something like this:
ul.falang-language-switcher img{width:XXpx;}
put it in the css of your template
hello, unfortunately it doesn’t work. The only way is using an image that is 30px in it’s original size.
Plugin Author
sbouey
(@sbouey)
you can ask to your template author how to disabled this rule and why it’s set