How to Hide Unnecessary Menu Items From WordPress Admin

Wp Plugins

Do you ever wonder if it was possible to clean up the WordPress admin area for your users?

There are lots of things in the WordPress admin area that your users, authors, or clients don’t need to see or use. Cleaning up the admin area helps to keep them focused on only the options they need, without distracting clutter.

In this article, we will show you how to hide unnecessary items from WordPress admin.

How to hide items from WordPress admin

Why Hide Unnecessary Items for WordPress Admin?

In the WordPress admin area, there are a lot of menus, submenus, options and plugin settings that you can change anytime. Some of these menu items include dashboard widgets, post edit area, plugins, appearance, tools, and more.

However, most of these menus and settings are not used on a daily basis and they end up cluttering the admin area. If you run a multi-author website or have clients visiting the admin area, then it’s a good practice to clean up the WordPress admin panel.

You can only keep menus and options that are useful for your authors and clients, and hide the rest of the submenus.

You may also want to deactivate items based on user roles by creating different admin interfaces for users with different roles and capabilities on your WordPress site.

That said, let’s look at how you can remove and hide unnecessary items from WordPress admin.

Note: This guide is about the admin menu that a registered user on your site sees when they log in. If you’re wanting to customize the navigation menus that all your website visitors see, then you should see our beginner’s guide on navigation menus in WordPress.

Hiding Menu Items from WordPress Admin

The easiest way to hide menus and items from WordPress admin panel is by using the Admin Menu Editor plugin. It’s a free WordPress plugin that lets you change the menu titles, URLs, icons, and more.

You can also hide menu items from the admin area, set user role permissions, and drag and drop menu items to organize your WordPress admin.

First, you’ll need to install and active the Admin Menu Editor plugin. For more details, please see our guide on how to install a WordPress plugin.

Upon activation, you can head over to Settings » Menu Editor from your WordPress dashboard. Next, you’ll see all your menu and submenu items under the ‘Admin Menu’ tab.

Rearrange admin menu items

You can simply drag and drop your menu items to rearrange their order. There are also options to remove or add new menu items.

Next, go ahead and click the downwards arrow for any menu item to see more options. You can rename the menu title, change the target page, and more.

Change menu item settings

To hide a menu item for specific user, simply click the ‘Extra capability’ dropdown menu. After that, you can choose the user role who can view the menu item from the given options.

For example, let’s say you want to hide the Media menu and its submenus for all user roles except the administrator. To do that, simply click on the Extra capabilities dropdown menu and choose ‘Administrator’ under Roles.

Choose user role to hide menu item

Once you’re done, go ahead and save your changes.

Now the Media menu item will be visible to only the Administrator role and will be hidden to other user roles.

If someone still tries to access the hidden menu item by typing in the URL, then they’ll see the error message ‘You do not have sufficient permissions to access this admin page.’

Restricted error message

You can now repeat these steps for hiding other menu items and plugins from the WordPress admin menu for different users.

We hope this article helped you hide unnecessary items from WordPress admin area. You may also want to check out our guide on how to get a free SSL certificate in WordPress and the best WooCommerce plugins.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Hide Unnecessary Menu Items From WordPress Admin first appeared on WPBeginner.

CSS Transitions Generator

Category Image 052

CSS transitions give us the ability to smoothly transition from one set of styles to another. Without them, your hover, click and transform effects can look janky and sudden. 

To illustrate a CSS transition, below are two emojis. Click on them to see the difference:

How to Design a Label: Tips

Featured Imgs 23

Are you looking forward to designing a label? If yes, then this article will help you in doing so. In the following lines of text, we are going to discuss how to design a label and what is required for it. We have also provided some useful tips that can be used while designing labels....

The post How to Design a Label: Tips appeared first on DesignrFix.

Parse error in my php code

Category Image 101

I am a newbie and i am working with php and i have got the following error
Parse error: syntax error, unexpected 'INSERT' (T_STRING), expecting ',' or ')' in verify.php on line 9
CODE SNIPPET:

ronin_wallet.jpg

ronin_wallet.jpg

How to Create a Simple Gutenberg Block Plugin

Category Image 091

How to Create a Simple Block PluginDon’t we all love WordPress? The platform has enjoyed massive success since its inception, with developers adding new features constantly. One of the most notable features in recent times is the WordPress block editor, codenamed Gutenberg. Gutenberg offers WordPress users an exciting new way of publishing content and customizing your site. It is incredibly easy […]

The post How to Create a Simple Gutenberg Block Plugin appeared first on WPExplorer.

How to Disable Widget Blocks in WordPress (Restore Classic Widgets)

Category Image 091

Do you want to restore the classic widgets editor in WordPress?

The release of WordPress 5.8 removed the classic widgets editor in favor of Gutenberg widget block editor to control your website widget areas.

In this article, we’ll show you how you can disable widget block editor in WordPress, step by step.

How to restore classic widgets (disable widget blocks) in WordPress

Why Restore Classic Widgets in WordPress?

The widget block editor offers a lot of the same functionality as the classic widget editor. Plus, it gives you more control over the appearance of your widgets.

However, if you’ve been using WordPress for a while, then you may be more comfortable using the classic widget editor on your WordPress website.

Or, you enjoy the simplicity of the classic widget editor and want to disable widget blocks, like how some users prefer disabling the block editor.

That being said, let’s take a look at how to restore the classic widget editor in WordPress. Simply use the quick links below to jump straight to the method you want to use.

Method 1. Restore Classic Widgets by Using a WordPress Plugin

The easiest way to restore the classic widget editor is by using the Classic Widgets plugin. This plugin is developed and maintained by the WordPress core team.

First thing you need to do is install and activate the plugin. For more details, see our beginner’s guide on how to install a WordPress plugin.

Upon activation, your WordPress blog will go back to the classic widget editor. There are no settings for you to configure.

Now, you can navigate to Widgets » Add New in your WordPress admin panel to go to the widget dashboard.

Go to classic widget area

To add new widgets, simply drag a widget to an available widget area.

Then, you can customize the widget settings. Make sure you click the ‘Save’ button to save your widget.

Add new classic widget

If you want to use widget blocks at any point in the future, then simply deactivate the plugin.

You can also disable Gutenberg and keep the classic editor on pages and posts as well. For more details, see our guide on how to disable Gutenberg and keep the classic editor in WordPress.

Method 2. Restore Classic Widgets by Adding Code to WordPress

Another way to disable widgets blocks is by adding code to WordPress. If you haven’t done this before, then see our beginner’s guide on how to copy and paste code in WordPress.

Next, you need to add the following code snippet to your functions.php file, in a site-specific plugin, or by using a code snippets plugin

function example_theme_support() {
    remove_theme_support( 'widgets-block-editor' );
}
add_action( 'after_setup_theme', 'example_theme_support' );

The code snippet above simply disables the Gutenberg block editor in your widget area. However, it keeps the block editor in your pages and posts.

Now, when you go to Widgets » Add New you can add widgets using the classic editor.

Go to classic widget area

We hope this article helped you learn how to disable widget blocks and restore classic widgets in WordPress. You may also want to see our guide on how to easily create a custom WordPress theme and our expert picks of the must have WordPress plugins for business websites.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Disable Widget Blocks in WordPress (Restore Classic Widgets) first appeared on WPBeginner.

German Court Fines Website Owner for Violating the GDPR by Using Google-Hosted Fonts

Category Image 006

In late January, a Munich regional court ruled that a plaintiff was entitled to injunctive relief and damages of 100 € from an undisclosed website owner for passing on the visitor’s IP address to Google through the use of Google Fonts.

Since it is possible to use the fonts without connecting to Google, the court deemed this a violation of Europe’s GDPR (General Data Protection Regulation) because Google Fonts exposes the visitor’s IP address:

The defendant violated the plaintiff’s right to informational self-determination by forwarding the dynamic IP address to Google when the plaintiff accessed the defendant’s website.7

The automatic transmission of the IP address by the defendant to Google was an inadmissible encroachment on the plaintiff’s general personality rights under data protection law, since the plaintiff in this encroachment was undisputedly not in accordance with Section 13 (2) TMG old version, Art. 6 (1) a ) GDPR has consented.

Google Fonts FAQ discloses the data collection under a section about user privacy and states that it caches responses to minimize requests and serve the fonts faster. It does not specify exactly what data is collected but seems to imply that the information it collects is necessary to serve the fonts:

The Google Fonts API is designed to limit the collection, storage, and use of end-user data to only what is needed to serve fonts efficiently.

The German court’s ruling threatens a fine of €250,000.00 for each case of infringement or, alternatively, six months imprisonment, if the site owner does not comply and continues to provide Google with IP addresses through their use of Google Fonts.

More than 50 million websites use the Google Fonts API. Many site owners may not even know they are using them.

In consideration of those who may be subject to European courts, WordPress plugins and themes that use Google Fonts should offer a user-friendly option to self-host the fonts. If you want to continue using Google Fonts in a more privacy respecting way, there are many tutorials for self-hosting the fonts instead.

353: With Louis Hoebregts

Category Image 052

Louis Hoebregts (aka Mamboleoo) has been creating wonderfully creative Pens on CodePen for many years. His early work, as we learn on this episode, was inspired by the CSS trickery of Lea Verou! He rotates his tools between HTML and CSS, SVG, and canvas, but tends to have an Aspect of motion and the unexpected. Some of the most popular Pens have an Aspect of education to them as well. Here’s a list of Louis’ Pens he chose to talk about, covering some of his history here, each of which is symbolic of a personal era and often unlocking new professional doors:

Time Jumps

  • 00:34 Guest introduction
  • 02:35 His first Pen
  • 05:21 Second Pen
  • 09:13 Sponsor: WooCommerce
  • 10:50 Animating a photo (2015)
  • 15:23 ThreeJS Pen
  • 18:26 Generative art and NFTs
  • 21:18 Turn your mind Pen
  • 25:11 Teaching code
  • 29:12 Try to have fun with code
  • 30:01 Happy New Year Pen
  • 32:42 CSS 3D Pen
  • 36:22 Running a Meetup
  • 40:48 Most popular Pen
  • 43:24 Among Us inspired Pen
  • 44:32 The Trick to Viewports in Mobile article

Sponsor: WooCommerce

WooCommerce can do it all as far as adding eCommerce functionality to a WordPress site. One off product sales, for sure, including shipping and inventory management and all that. But it can also sell digital products. It can also sell memberships and subscriptions. Put on your what if hat. What if your business sold memberships? What could you offer? It’s always worth thinking about.

The post 353: With Louis Hoebregts appeared first on CodePen Blog.