currency switcher

Mar

Moderator
I use an "images" folder in my root directory (Wordfence has it covered) for some icons etc so I stuck a "flags" folder there too. Less hassle using the Media Library and copy/pasting long URLS. Just /images/flags/flag.png is easier to add.
Nice tip, make the work less.
 

Direct Webstore

Well-Known Member
24px x 24px ? Your screenshots flags they look nice but they are not square,(not in naked eye ,I don't know if you use this phrase is English language :) )
What dimensions have? I like them they size you have them.
Actually, I am, right at this minute trying 16x16. The 24x24 was too big. Maybe 20x20 ... still experimenting.

they are not square
Flags are rectangular.
 

Direct Webstore

Well-Known Member
I've settled on 20x20 and moved the visible part up into the transparent part to center it.

curr_004.jpg


.. open

curr_005.jpg



Example image...

US.png

Looks the same on mobile too.

Mission complete!
 

Direct Webstore

Well-Known Member
One last thing. Change this ...
curr_006.jpg

... to this ...

curr_007.jpg

by adding this ...

.select2-container--default .select2-results>.select2-results__options {
max-height: 100%;
}


So the whole CSS is ...

select,.select2-container .select2-choice, .select2-container .select2-selection {
background-color: #f7f7f7;
border-radius: 18px;
width: 90px;
}
.select2-container--default .select2-results>.select2-results__options {
max-height: 100%;
}
 
Top