0:00
Hi everyone, welcome to K2 blog and in this video I am gonna show you how you can hide
0:04
menus in your WordPress dashboard. So let me just show you, so when you open a WordPress dashboard you will see this menu
0:12
in the left section. So what if you want to remove or hide this section from the dashboard, so make the WordPress
0:20
look clean, so you can do that using a code snippet. First let me just show you how you can remove this section from your dashboard, so to remove
0:29
this section, suppose you don't want to add the WordPress event and news in your dashboard
0:34
then all you have to do is click on the screen option here and you can uncheck that and it
0:38
will remove from the WordPress dashboard. You can also remove the activity like this and here you can remove the health status
0:45
like this. So in this way you can clean up your WordPress dashboard
0:49
But what if you want to remove this section, suppose you don't want the user section, tools
0:54
section all the times, then you can simply hide it from your WordPress dashboard and
0:59
it is very helpful if you are using a WooCommerce website where you have a lot of options in
1:04
the left sidebar and you want to clean up some menus from that sidebar to make it look clean
1:11
Then you have to use a code snippet plugin. So let me just go to the plugins and let me just show you
1:16
So let's click on add new here and you can simply install any code snippet plugin
1:22
So suppose I will search for like code snippet and here you will get multiple plugins
1:29
Either you can use the WP code or you can use the code snippet
1:34
So let's install the code snippet plugin here. Now let's activate this plugin
1:42
Now let's click on the snippets here and here you need to create a new snippets
1:49
Now you need to copy a code from here. So let me just copy this code snippet here and I will paste it here
1:59
Now you can run this snippet everywhere or you can only run in administrative area like this
2:05
So let me just select this one and I can name it like remove menu from dashboard
2:13
So I can remember what the code is for. Now let's click on save changes here and make sure to activate it
2:21
And as you can see that some of the menus from the left sidebar is now gone
2:26
And here we have hide the command appearance plugin, tools, users and settings
2:32
Suppose you want to keep the plugin section, then you can simply add a forward slash two
2:38
times and it will comment that line. Let's click on save changes here and as you can see that the plugin is back
2:45
So basically we are hiding this from the dashboard to make the dashboard look clean
2:50
So in this way you can customize your WordPress dashboard by removing or hiding the menus
2:56
from the sidebar. So I hope you like this video and if you found this video helpful, then make sure to hit
3:02
the like button. I will see you in the next video