Support » Plugins and Hacks » Remove visibility option from publish box?

  • Resolved Tim

    (@nitrammit)


    Hey.

    I’m looking for a way to remove the visibility option (public, password protected or private) altogether from my page/post editor’s publish box.

    Any ideas?

Viewing 1 replies (of 1 total)
  • Tim

    (@nitrammit)

    Figured out a solution:

    Add this to your theme’s functions.php file:

    add_action( 'admin_head', 'showhiddencustomfields' );
    
    function showhiddencustomfields() {
        echo "<link rel='stylesheet' media='screen,projection' type='text/css' href='" . get_template_directory_uri() . "/css/dashboard.css'>";
    }

    Create a new file named dashboard.css inside your theme directory’s CSS folder and drop in the following:

    #misc-publishing-actions #visibility {
    	display: none;
    }

    Easy!

Viewing 1 replies (of 1 total)
  • The topic ‘Remove visibility option from publish box?’ is closed to new replies.