How to Change Background Color of Posts in WordPress Admin

Share This Article:

If you are looking to change the background color of posts in WordPress Admin based on the status then this article will help you. In back-end of WordPress admin, all posts page includes different types of posts Drafts, Published, Future, Pending, Private etc. By default only drafts are highlighted with different background color.

change-background-color-posts-WordPress-Admin

In this tutorial we are going to explain how to add different background color to the posts in WordPress admin based on their current status. This is a simple thing, but helps to easily identify the posts based on their status.

Background Color of posts in WordPress Admin can be changed by following any of these two methods:

  • Using a Free WordPress Plugin
  • Adding Code to Functions File

background-admin-posts-wordpress

1. Using  Color Admin Posts Plugin

Color Admin Posts is a free WordPress plugin, that come with handy options to change the background color of posts, based on the status.

change-background-color-post-status

You can use the color code directly or can use the inbuilt color picket to select the background color of a particular post type and click on save button.

color-admin-posts-plugin-download

Download plugin »

In our view, it is not certainly necessary to use this plugin. As using more plugins will effect page loading speed you can follow the below method.

2. Adding Code to Functions.php File

Here is another method, in which you need to add the below code to functions.php file in your WordPress theme folder. You can change the background color by replacing the code in this snippet with desired color code.

Note: It is recommended to backup your WordPress Theme before editing files in it.

/** Start of Change background color of Posts in WordPress */
function admin_posts_background(){ ?>
<style>
.status-publish{}
.status-draft{background: #FCE3F2 !important;}
.status-pending{background: #87C5D6 !important;}
.status-future{background: #C6EBF5 !important;}
.status-private{background:#F2D46F;}
</style>
<?php
}
add_action('admin_footer','admin_posts_background');
/** End of Change background color of Posts in WordPress */

In case if you are using Thesis Theme, then you need to include this code in custom_functions.php file and save it.

Credits to WPSnipp for this awesome code snippet.

Hope you like this simple and useful tutorial on changing background color of posts in WordPress Admin based on the status. If you need any help, drop a comment here and we will get back to you. Meanwhile subscribe to our feeds using the form below.

Genesis is the most flexible WordPress theme framework that comes with tons of options. We have been using Genesis on all of our blogs and recommending the same to you. Every bit of it is coded according to the standards. Give it a try!

Comments

  1. sai krishna says:

    Very cool feature, I’l try it soon

  2. web design quotes says:

    this is really useful tip, at least for me! thanks for sharing this info mate :)

  3. Saad says:

    Could you please share a running example of changed background color ?

  4. Ileane says:

    This is a neat idea. I have a lot of guest authors so I wonder if I can assign a color to each of them. My goodness, I might run out of colors if I do that lol! Thanks for the post Bharat. I never saw this plugin before.

  5. Masoud says:

    Hi
    It,s a nice plugin, thansk. I,ve been looking for a plugin to change background color of my comments on my blog as “Admin” e.g I wanna to change background color of my comments to “red” and set users comments to “grey” to recognize well when they publish for a post. do you know a plugin/widget for my wish?

    Best Wishes
    Masoud

Speak Your MindComments Policy →

*

Looking for More Awesomeness?

Read previous post:
add-google--plus-share-button-wordpress
How to Add Google Plus Share Button in WordPress

Tutorial on How to Add Google+ Plus Share Button to WordPress Theme without using a plugin. Google Plus is playing...

Close