🥹How to Customize the WordPress Admin Dashboard Without a Plugin (ok)
https://developer.wordpress.org/reference/functions/wp_add_dashboard_widget/
Last updated
Was this helpful?
https://developer.wordpress.org/reference/functions/wp_add_dashboard_widget/
Last updated
Was this helpful?
Hey, WordPress enthusiasts! Are you tired of the same old, same old when you log into your website’s admin dashboard? Do you want a custom look that’s all your own? Well, you’ve come to the right place. Today we’re going to learn how to customize the WordPress admin dashboard. Put on your coding hats, and let’s dive in!
The WordPress Admin Dashboard is the first screen you see when you log into the administration area of your website. It gives an overview of your site’s content and displays several widgets such as ‘At a Glance’, ‘Activity’, ‘Quick Draft’, etc.
We’ll begin by creating a function to remove some of these default widgets. Let’s say you want to remove the ‘Quick Draft’ widget.
Add the following function to your theme’s functions.php
file:
Copy
This function removes the ‘Quick Draft’ widget from the dashboard. You can repeat this code for each widget you wish to remove.
Now, let’s create a custom widget to display on your dashboard.
Add this function to your functions.php
file:
Copy
This will add a new widget titled “My Custom Dashboard Widget” to your admin dashboard, which simply displays the message “Hello, this is my custom dashboard widget!”. You can modify the widget content to display anything you want.
Now let’s do something about that footer text.
You can modify the admin footer text by adding this function to your functions.php
file:
Copy
Replace ‘Your Name’ with your actual name, and voila! Your admin footer text is now personalized.
Lastly, let’s add some custom CSS to change the look of the dashboard.
Add this function to your functions.php
file:
Copy
This will change the background color of the dashboard and the color of the H1 tags. You can add your own styles as per your needs.
Let’s look at all the code together:
Copy
And there you have it! Your very own, custom WordPress admin dashboard. From widgets to footers to styles, you’re now a master of the WordPress admin. Keep tinkering, keep learning, and happy coding! 🚀