Media Categories
[resolved] "Prettier" metabox (3 posts)

  1. baderstine
    Posted 3 years ago #

    Add a few lines to the media_categories_meta_box function and the css file to make the categories box look "pretty."

    In media_categories_meta_box, replace the first <div> with:

    <div id='categorydiv' class='postbox'>
    	<div class='inside'>

    make sure to close these div's at the end.

    In media-categories-style.css, add

    .media-upload-form .postbox {
        width: 460px;

    Also, I didn't like the fact that it was putting the checked terms on top, so when I called wp_terms_checklist(), I passed in the option 'checked_ontop' => 0. Would be nice if you split out the hardcoded array being passed to wp_terms_checklist instead into a $args variable, and included this option in it.


  2. baderstine
    Posted 3 years ago #

    additional css for the search box:

    .media-upload-form input#category-search{
    	width: 320px;
  3. Eddie Moya
    Plugin Author

    Posted 3 years ago #

    Thanks a lot - I've been neglecting this and my other plugins for a few months since I;ve been tied up with much larger scale plugins and development at work.

    When I get around to updating this plugin (which I hope will be soon), I will definitely take a look at what you've posted here.

    Thanks again! I always love it when people care enough to actually contribute back to my plugins. Its also evidence to my employer that Open Source is the way to go.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Media Categories
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic