B
B
bogette2018-10-09 19:02:17
WordPress
bogette, 2018-10-09 19:02:17

How to change the layout of the "Users" page in Wordpress?

In fact, it is important to understand whether this can be implemented without knowledge of php? Based only on html/css/js?
I need a different layout for the block layout on the "Users" page. If users are now walking horizontally with 90 percent width, I need them to walk in the following layout:
5bbcd0b8a7c53571921547.png
That is, a block, in this block, an image that takes up 40% of its space, and then (below) information: name, email and other things.
If we take into account that php is functionality, this by definition should be implemented without it - by the forces of layout and javascript. And if this is indeed the case, how to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Chesnokov, 2018-10-09
@cesnokov

A little PHP is still needed!
Add code to functions.php that will load additional CSS in the admin area:

function custom_wp_admin_css() {
  wp_register_style('custom_wp_admin_css', get_template_directory_uri() . '/wp-admin.css', false, null);
  wp_enqueue_style('custom_wp_admin_css');
}

Next, add a file called wp-admin.css to the template's root directory. And already in it, without limiting your imagination, change the standard WP styles to what you need.
For example:
table.users tr {
    display: inline-block;
    width: 33%;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question