Custom Css
.switcher-style {
text-align: justify;
max-width: 100px;
font-size: 10px;
background-color: transparent!important;
color: black !important;
border: 0px !important;
height:38px !important;
}
.select2-container–default .select2-selection–single {
background-color: transparent;
border: none !important;
font-size: 10px;
padding: 0 0;
margin-left: 29px;
}
Functions.php
function loadImageSelect() {
wp_enqueue_style(’select2′, ‚https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.min.css‘ );
wp_enqueue_style(‚flags‘, ‚https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.3.0/css/flag-icon.min.css‘ );
wp_enqueue_script(’select2′, ‚https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js‘, array(‚jquery‘) );
// please create also an empty JS file in your theme directory and include it too
wp_enqueue_script(‚mycustom‘, get_stylesheet_directory_uri() . ‚/js/mycustom.js‘, array( ‚jquery‘, ’select2′ ) );
}
add_action(‚wp_enqueue_scripts‘, ‚loadImageSelect‘);