• Can anyone please customize this CSS to hide these two whole tab with title also only upload files and media library tab are visible and all other tab will be hide for authors.

    add_action('admin_head-post.php', 'hide_media_stuff_wpse_120894' );
    add_action('admin_head-post-new.php', 'hide_media_stuff_wpse_120894' );
    
    function hide_media_stuff_wpse_120894(){
    ?>
    <style type="text/css">
    .attachment-details [data-setting="title"],
    .attachment-details [data-setting="attachment"],
    .attachment-details [data-setting="url"],
    .attachment-details [data-setting="caption"],
    .attachment-details [data-setting="alt"],
    .attachment-details [data-setting="description"],
    div.attachment-display-settings
    {
        display:none
    }
    </style>
    <?php
    .attachment-details {
        position: relative;
        overflow: auto;
        display: none;
    }
    
    .media-frame-menu {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 200px;
        z-index: 150;
        display: none;
    }

    i m using this Code with this CSS but there are still Tab are showing with Action and Expand Detail Titles as You See in Image Below.

Viewing 1 replies (of 1 total)
  • hello @asifshaikhtsn,

    I hope you are doing well,

    so you can use a plugin to hide those things, basically, it is a white-labeling plugin so you can hide and replace names or things

    How to use Admin CSS

    Hope this method will work for you and if you feel any doubt revert me back. I feel happy to help you

    Cheers!

Viewing 1 replies (of 1 total)
  • The topic ‘CSS Coding for Removing Section of Add Media Page’ is closed to new replies.