• Resolved Raúl Amores

    (@elbores)


    Hello, I have a not so important question but I prefer to do it than not.

    I have updated to last Newspaper version today and then Admin post list table has appeared that way https://ibb.co/ryPsQyf
    I mean the text from the tables has gone to a middle alignment when it’s always at top. I have a code for showing feautured image at functions.php but it has always works fine and also when I delete it the “problem” persist. There′s any way to change css from admin table list so the text appears at top as always? If you look up to the code of the admin page and selecting author or whatever column you could see:

    widefat td {
    vertical-align: middle !important

    If you change it offline all come back to what its the usual alignment… Hoping you understand the issue lol

    • This topic was modified 1 year, 3 months ago by Raúl Amores.
Viewing 3 replies - 1 through 3 (of 3 total)
  • @elbores

    To change the CSS of the admin table list and make the text appear at the top as usual, you can use the following steps:

    Locate the functions.php file in your WordPress theme directory.
    Open the functions.php file in a text editor.
    Add the following code snippet to the functions.php file:

    function custom_admin_css() {
        echo '<style>
            .widefat td {
                vertical-align: top !important;
            }
        </style>';
    }
    add_action('admin_head', 'custom_admin_css');

    Save the changes to the functions.php file and upload it back to your server.

    The code above adds custom CSS to the admin section of your WordPress site using the admin_head action hook. It targets the .widefat td selector and sets the vertical-align property to top !important.

    This should override the existing CSS and restore the text alignment to the top in the admin table list.

    Thread Starter Raúl Amores

    (@elbores)

    @briskwebservices

    Working, many thanks! I don′t really know why it has changed to middle. But something related with theme update by sure. I have asked them too…

    @elbores

    Glad it worked ! Sometimes it could be due to updates but that’s unknown. At least we got it working!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Admin post table strange thing’ is closed to new replies.