We make out the admin panel. Adding a background to an article based on its state.

I think it will be interesting for those who are used to making an admin panel WordPress convenient for you and your clients. Besides, article will be a great addition to the article, which is already on my site “Highlight Post Status in WordPress

 

Your actions will look something like this:

Оформляем админку. Добавляем фон к статье по ее состоянию.

I found the code on one site which, I have support. I found it comfortable, so I decided to post it to you. Good luck in developing user-friendly sites on WordPress.


Buy WordPress hosting
WordPress tutor
Online tutoring services. List of courses I teach
  • Basic web design course;
  • Site layout;
  • General course on CMS WordPress and continuation of the course on template development;
  • Website development in PHP.
Read more on the page WordPress tutor
*/

Nikolaenko Maxim

Director of web studies ProGrafika. I am developing, website design and promotion. Always glad to new blog readers and good clients.


You may also like...

4 Responses

  1. Evgeny Vlasov says:

    From the point of view of the validity of the resulting html script, wiser to use not admin_footer, а admin_head. Read more here – htmlbook.ru/html/style

  2. admin says:

    I don't quite agree with you. Now we are talking about the WordPress admin area., not about the site as a whole. Admin is not indexed, which means that there you can insert the code in the place where it is convenient and at the bottom the code is inserted only in order to initially load the content in the browser.

    On the user side on the site itself, this code will not be visible, this effect is provided by the add_action action(‘admin_footer’,’posts_status_color’);

    thanks for the comment.

    • Evgeny Vlasov says:

      So validity is needed only for indexing? :)

      Modern browsers, almost certainly, display content correctly, older ones may “break” appearance / structure of the console. Yes, he will, that modern browsers will display correctly is nothing more than the foresight of the developers. Everything can change.

      • admin says:

        Well, everything can change, but many, including Google, have already abandoned support for IE7. Besides, there is nothing here, whatever is not supported by different browsers, we just override the standard styles. And you can do it all in the form of an additional plugin and disable it later.

        I will specially change the code for the plugin, so stay tuned i will post it. Then you can, if necessary, its easy to deactivate the unnecessary plugin in case of problems.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Templates for WordPress
The best hosting in Ukraine
Stable hosting for Drupal