Open dbjpanda opened 3 years ago
This can be achieved adding below code snippets to your theme's functions.php file
/*
* Make Users Table Responsive and interactive
*/
add_action( 'admin_enqueue_scripts', function($hook){
if ( 'users.php' != $hook ) {
return;
}
?>
<script type="text/javascript">
window.onload = function() {
if (window.jQuery) {
jQuery( ".wp-list-table" ).removeClass( "fixed" ).wrap('<div style="white-space:pre;overflow:auto;width:100%;"></div>');
}
}
</script>
<?php
});
A scroll bar is required on users dashboard when the user fields are too many.