Tagged: wpml
Hello,
I need to increase the size of the flags in the header for the WPML language selector. Here is what I changed to enlarge the flags.
– I uploaded a US & Spanish flag as 36px x 24px (instead of the default 18×12)
– Added this CSS
.avia_wpml_language_switch li .language_flag img {
width: 36px;
height: 24px;
}
The flags are now bigger but they are blurry. It appears that it’s using the CSS to increase the images from 18×12 instead of presenting the 36px x 24px image.
Thanks for your help!
Hey Keith,
As you know the flags are 18×12 and enlarging will make them blurry, if you replace the flag images at /wp-content/uploads/flags/us-large.png &/wp-content/uploads/flags/es-large.png with your larger images they will not be blurry.
Just name them the same. Try looking in the same folder, perhaps larger ones are included with a different name.
Best regards,
Mike
Thank you Mike. It looks like the WPML uploader converts the image to 18×12 so uploading via FTP worked great.
Hi,
I’m glad Mike was able to help, did you need further help, or shall we close this thread?
Best regards,
Jordan Shannon
You can close it, thank you Jordan.
Hi,
Glad we could help!
Please take a moment to review our theme and show your support https://themeforest.net/downloads
To know more about enfold features please check – http://kriesi.at/documentation/enfold/
Thank you for using Enfold :)
Best regards,
Basilis