Going to WordPress Media Library and clicking on any image when in the List view will show the Oxygen’s meta box at the bottom.

Let us see how we can get rid of this as it is of no use on media pages.

Method 1

When on any Edit Media page, click on Screen Options near the top right and uncheck Oxygen.

Note that this change is specific to the current user and does not apply to all the users.

Method 2

This method removes the meta box by default for all the users.

Install and activate Code Snippets plugin.

Go to Snippets > Add New.

Title: Remove Oxygen meta box from Edit Media pages

Code:

add_action( 'do_meta_boxes', 'custom_remove_oxygen_metabox_media' );
/**
 * Remove Oxygen meta box from Edit Media pages.
 */
function custom_remove_oxygen_metabox_media() {
	remove_meta_box( 'ct_views_cpt', 'attachment', 'normal' );
}

Set it to run only in the admin.

That’s it!

References:

https://codex.wordpress.org/Function_Reference/remove_meta_box

https://codex.wordpress.org/Post_Type#Attachment

Need help implementing a tutorial in your site or want to hire me for custom work?

HIRE ME

Find the article helpful and wish to donate?

DONATE

Comments

For adding code blocks wrap the code in three backticks. Markdown should work.
Provide a URL of your site/webpage if something is not working.
>
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
%d bloggers like this: