Hide empty boxes on the Story Budget

By default, the Story Budget will display boxes for each category even when there aren’t any posts. With a little CSS thoug, it’s possible to hide a category box if there aren’t any posts.

First, read the introduction to extending Edit Flow. Once you’ve done so, you can modify the code snippet below to work for your needs.

add_action( 'admin_head', 'efx_admin_head_hide_empty_boxes' );
function efx_admin_head_hide_empty_boxes() {

	if ( empty( $_GET['page'] ) || 'story-budget' != $_GET['page'] )
.postbox {
	display: none;
.postbox.postbox-has-posts {
<?php }

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: