0:00
Hi everyone, welcome to K2 blogging and in this video I will show you how you can disable
0:04
the loading of dash icon in your WordPress website. So as you can see that these are the icons so dash icon used in WordPress
0:12
So if a user is not logged into your WordPress website then they don't need this dash icon
0:17
So you can safely disable it on your WordPress website and improve your blog loading speed
0:23
So when I check the website in page speed insight and when I scroll down here you will
0:27
see this option reduce unused CSS and under that you will see this option dash icon min.css
0:34
and again if you check the eliminate render blocking resources it is again showing the
0:38
dash icon min.css. So this is hampering our page loading speed so we can easily disable it in WordPress in
0:46
various method. So let's check how you can disable it using the PubMatters plugin
0:51
So if you are using PubMatters plugin in your WordPress website then you can simply disable
0:56
it from WordPress just by going to the settings and here in the PubMatters and here you need
1:02
to simply enable this option disable dash icon and let's hit the save changes
1:09
Now when you open this website in incognito mode so let me just quickly open this
1:21
and let me click on view page source and let's search for that dash icon
1:27
As you can see that it is not detecting that stylesheet and let me go to the page speed
1:32
insight here and as you can see that earlier it is showing in reduce unused CSS and render
1:37
blocking resources. So let me just quickly rerun this test and let's check if this error is gone or not
1:46
Alright as you can see that the speed has improved significantly and as you can see
1:50
that those errors are now gone. So in this way you can disable dash icon using the PubMatters plugin and what if you are
1:58
not using any plugin then you can also do that using a custom code snippet
2:03
So all you have to do is use this code in the theme function.php file
2:07
So just copy the code and let's go to the admin panel of this website and here you can
2:14
go to the theme file editor and here you need to go to the function.php file
2:21
Here it is theme function and here you can simply paste this code and hit the update
2:30
button or you can use a code manager plugin to disable dash icon in your WordPress website
2:36
So for this let's go to the plugins and let's click on add new and you can simply search
2:40
for code manager. And here you can see various code manager plugin
2:45
So you can use any of the code manager plugin that allow us to add PHP snippet in our theme
2:50
function.php file. So here I will use this wp code plugin. So I have already installed and activated this plugin and after you activate this plugin
2:59
you will see this option code snippets. So just click on here and let's click on add new
3:06
Now you can click on use snippets here and you can simply type like disable dash icon
3:16
and let's copy the code and let's paste it here. Now let's change the code type to PHP snippet
3:25
Let's click on active and let's click on save changes. And after that this dash icon will be disabled from your WordPress website and you can improve
3:34
your block loading speed. So I hope this video helps you disable dash icon from your WordPress website and if you
3:40
have any doubt regarding this then you can ask me in the comment section
3:44
And if you found this video helpful then make sure to hit the like button
3:47
So I will see you in the next one. Bye bye