Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
You’ve got a nasty bug at chosen RTL modification. It converts all selects at a page to chosen…
There is a fix:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
add_action('wp_head','userpro_add_custom_styles', 99999); function userpro_add_custom_styles() { if (userpro_get_option('userpro_css')) { print '<style type="text/css">'.userpro_get_option('userpro_css').'</style>'; } if(is_rtl()){ echo '<script type="text/javascript">'; ?> jQuery(function(){ jQuery('select.chosen-select').each(function(){ jQuery(this).attr('class' , jQuery(this).attr('class')+' chosen-rtl'); }); jQuery('.chosen-container-single').attr('class' , 'chosen-container chosen-container-single chosen-rtl'); }); <?php echo '</script>'; } } |
jQuery(function(){
jQuery(‘select.chosen-select,.chosen-container-single’).addClass(‘chosen-rtl’);
});
this is even simpler…
You must be logged in to reply to this topic.