Friday , December 20 2024

Css styles for WordPress admin in functions.php

If you need to add individual styles, and they are only a couple of lines, you can add them directly to functions.php:

add_action('admin_head', 'webinp_style');
function webinp_style() {
print '<style>
tr[data-slug="to-top"] {display: none !important;}
</style>';
}

Between <style> and <style> you need to write your own CSS styles.

About admin

Hi there! My name is Iryna, I am a web developer from Ukraine. While working on freelance projects I often face different technical issues and in this blog I publish articles on how to solve them. I am also interested in digital drawing and in this blog you will find brief tutorials that helped me and hopefully can help you as well.

Check Also

How to open html pages without .html

If your site uses links like http://domain.com/testpage.html and http://domain.com/demo.html, and you want them to open …

Leave a Reply

Your email address will not be published. Required fields are marked *