• Hello community,

    I’ve been searching the forums but I didn’t found it : how could I style a bigger category box in the Editor ?

    I’m increasing quite fast the number of cat’s, and to search for them in an optimized way I’d need to style the box’s size (basically its height).

    I’m going to search in the core of WP, but if there was an easier way to do it it would be really nice to know how.

    Actually, I’m using WordPress 2.6, which presents the typical scrollbar as you add the categories, but in a pretty small space (to me).

    It seems like in 2.7 the category box is going to resize itself automatically ? Or it will add a scrollbar too ?

    Thanks if anybody can provide some light over this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter dunkkan

    (@dunkkan)

    Ok it’s really easy :

    1. Locate this directory : wp-admin.
      As you have noticed, it is just next to wp-content, where you upload plugins and themes.
    2. Open it.
    3. Find wp-admin.css, and open it in a text editor, like Notepad++ (excellent open-source editor between 8/ ). Search for this lines, at the bottom of the file.
      div.ui-tabs-panel {
      	margin: 0 5px 0 120px;
      	padding: .5em .9em;
      	height: 10em;
      	overflow: auto;
      	border-width: 4px;
      	border-style: solid;
      }
    4. Increase the height of the div. I put 40em, which is perfect if you have about 30 categories.

    So the final result is …

    div.ui-tabs-panel {
    	margin: 0 5px 0 120px;
    	padding: .5em .9em;
    	height: 40em;
    	overflow: auto;
    	border-width: 4px;
    	border-style: solid;
    }

    Save it. Come back to your blog and refresh the admin screen.

    Thanks for assisting to this micro-tutorial. ??

    Good job. I believe it is possible to make something like that into a plugin. With a plugin, you would not need to re-do the same change after each upgrade of WP. Without a plugin method, this is what I’d call “hacking the core files” which is okay but something to try to avoid for the above reason.

    I’m not sure also but another idea, or it may already exist, a plugin for Admin CSS that is like the MyCSS plugin. All that needs to happen is to call-in your personalized CSS * after * the admin css has already been called into the page load from WP core files. The later CSS will over-ride the earlier CSS. I don’t know if MyCSS plugin works for admin css tho, I think it is for front-end CSS.

    Anyone know of a plugin like-so?

    thank you, useful topic!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘admin-side : a bigger category box ?’ is closed to new replies.