How to Disable the Screen Options Button in WordPress

Do you want to disable the screen options button in WordPress. The screen options button allows users to show and hide elements on different pages thr

WordPress Information:How to Disable the Screen Options Button in WordPress

Would you like to disable the display choices button in WordPress?

The display choices button permits customers to present conceal components on completely different all through the WordPress . Nonetheless, when you share the dashboard with others, then this button may cause issues, particularly if somebody by chance hides an vital setting.

On this article, 'll present you to disable the display choices button in WordPress.

How to Disable the Screen Options Button in WordPress

Why You Could Need to Disable the Screen Options Button

In the event you go to sure areas of the WordPress dashboard, then you will note a display choices button in the high proper nook.

This button permits logged-in customers to customise the dashboard by displaying and hiding vital settings.

How to Disable the Screen Options Button in WordPress

In case you are a solo blogger or web site proprietor, then the display choices button is a straightforward manner to customise the WordPress admin dashboard. Nonetheless, it will possibly trigger issues when you share the dashboard with different folks.

instance, when you run a multi-author weblog, then an creator might conceal an vital setting.

At this level, different authors can't simply entry this selection, which might trigger issues with the editorial workflow on multi-author WordPress blogs.

With that in thoughts, let's see how one can disable the display choices button in WordPress. Merely use the fast hyperlinks under to soar straight to the methodology you need to use:

  • Technique 1: Utilizing Adminimize (Disable Screen Options for Particular Person Roles)
  • Technique 2: Utilizing WPCode (Disable Screen Options for All Customers)

Technique 1: Utilizing Adminimize (Disable Screen Options for Particular Person Roles)

Typically, it's your decision to disable the display choices button for particular person roles.

For instance, when you settle for visitor posts in your WordPress weblog, then you definately would possibly conceal the button from everybody with the Visitor person function.

The manner to disable display choices for particular roles is by utilizing Adminimize. This plugin permits you to conceal content material from sure customers.

For instance, you'll be able to disable the WordPress admin bar for all customers besides directors, conceal sure menu and submenu choices, and extra.

First, you will want to set up and activate the Adminimize plugin. For extra particulars, see our step-by-step information on how to set up a WordPress plugin.

Upon activation, head over to Settings » Adminimize. On this web page, go forward and click on on the ‘International choices' hyperlink.

How to Disable the Screen Options Button in WordPress

You'll now see all the content material you'll be able to conceal in the admin dashboard. Alongside the high of the display, Adminimize additionally reveals all the completely different person roles in your WordPress web site.

Right here, merely discover ‘Screen Options' after which examine the field for every function the place you need to deactivate the display choices button.

How to Disable the Screen Options Button in WordPress

To cover different content material, merely observe the identical course of described above. For instance, it's your decision to conceal admin notices from everybody besides the web site's directors.

For extra particulars, see our information on how to conceal pointless gadgets from WordPress admin.

If you end up pleased with the adjustments, simply click on on ‘Replace Options' to retailer your settings.

How to Disable the Screen Options Button in WordPress

Technique 2: Utilizing WPCode (Disable Screen Options for All Customers)

An alternative choice is to disable the display choices button for all customers. This is usually a selection if in case you have hung out fine-tuning the WordPress dashboard and need to cease anybody from altering these settings.

It's additionally choice if you're a WordPress improvement company and you might be handing a web site over to your shopper.

You possibly can disable the display choices for all customers by including customized code to your web site. The largest drawback is that even a tiny mistake in the customized code snippet may cause widespread WordPress errors or break your web site utterly.

That's the place WPCode comes in.

WPCodeis the finest code snippets plugin utilized by over 1 million WordPress web sites. It makes it straightforward to add customized code in WordPress with out enhancing your theme's features.php file.

First, you will want to set up the free WPCode plugin. For extra info, see our step-by-step information on how to set up a WordPress plugin.

Subsequent, you will want to go to the Code Snippets » Add Snippet web page in your admin dashboard.

How to Disable the Screen Options Button in WordPress

Right here, you will note all the ready-made snippets you'll be able to add to your WordPress weblog or web site.

These embrace snippets that permit you tocompletely disable WordPress feedback, add recordsdata that WordPress doesn't assist by default, and extra.

WPCode comes with a ready-made snippet that may conceal the display choices button for all customers, together with web site admins.

To search out the proper snippet, ‘Screen choices' into the search bar. When the code snippet reveals up, simply hover over it after which click on on the ‘Use snippet' button when it seems.

How to Disable the Screen Options Button in WordPress

You'll now see the ‘Edit Snippet' web page, which already has all the proper settings.

Merely click on on the ‘Inactive' toggle in order that it adjustments to ‘Lively.' Lastly, click on on ‘Replace' to make the snippet dwell.

How to Disable the Screen Options Button in WordPress

With that carried out, the display choices button will disappear from the dashboard for all customers.

In some unspecified time in the future, you might want to entry the display choices once more. To do that, merely disable the code snippet by going to Code Snippets » Snippets.

Right here, discover the ‘Disguise Screen Options Tab' snippet, and click on on its ‘Standing' toggle in order that it turns from blue (enabled) to gray (disabled).

How to Disable the Screen Options Button in WordPress

With that carried out, it is possible for you to to entry the display choices button.

How to Present the Screen Options Button to Admin Customers

WPCode comes with a ready-made snippet that hides the display choices from all customers. Nonetheless, you too can conceal the button from everybody besides admin customers by including customized PHP code.

As soon as once more, head over toCode Snippets »Add Snippet in the WordPress dashboard.

This time, you will want to add customized code to your WordPress web site by hovering over ‘Add Your Customized Code.' Then, click on on ‘Use snippet'.

How to Disable the Screen Options Button in WordPress

To begin, sort in a title for the customized code snippet. This may be something that helps you establish the snippet in the WordPress dashboard.

After that, you want to open the ‘Code Sort' dropdown and choose ‘PHP Snippet'.

How to Disable the Screen Options Button in WordPress

Then, merely paste the following snippet into the code editor:

operate wpb_remove_screen_options() { if(!current_user_can('manage_options')) {return false;}return true; }add_filter('screen_options_show_screen', 'wpb_remove_screen_options');
Hosted with ❤️ by WPCode
1-click Use in WordPress

After that, it's time to make the snippet dwell by clicking on the ‘Inactive' toggle in order that it adjustments to ‘Lively.'

Lastly, click on on ‘Save Snippet.'

How to Disable the Screen Options Button in WordPress

Now, the display choices button will disappear from the WordPress dashboard for everybody besides web site admins.

We hope this text helped you find out how to simply disable the display choices button in WordPress. You may additionally need to see our information on how to permit person registration in your WordPress web site or see our skilled picks for the finest contact type plugins for WordPress.

Aidan

Aidan

Aidan is a website hosting and development enthusiast. She loves to share her knowledge with others in order to help them grow their online presence. When she's not busy writing, Nabilla enjoys exploring nature and going on adventures. She is passionate about helping people achieve their online goals.

Articles: 103

Leave a Reply

Your email address will not be published. Required fields are marked *