Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #912555

    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!

    #912621

    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

    #912883

    Thank you Mike. It looks like the WPML uploader converts the image to 18×12 so uploading via FTP worked great.

    #912886

    Hi,

    I’m glad Mike was able to help, did you need further help, or shall we close this thread?

    Best regards,
    Jordan Shannon

    #912891

    You can close it, thank you Jordan.

    #912984

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘WPML larger flag selector’ is closed to new replies.