How To Modify WordPress Dashboard Without Plugin

>

How To Modify WordPress Dashboard Without Plugin

Today, I am going to provide you easy and quick steps to modify wordpress dashboard without plugin. Please follow below steps:

1. Hiding unwanted widget from wordpress dashboard

You can easily hide widgets from wordpress dashboard that you have no longer needed.

You have to add following code into your active theme's function.php file:

add_action('wp_dashboard_setup', 'custom_hide_widgets'); function custom_hide_widgets() { global $wp_meta_boxes; //for Activity unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_activity']); //for At Glance unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']); }

 

This will hide Activity & At Glance from your WordPress dashboard.

2. Replace "Howdy" with your text in WordPress admin bar

By default in wordpress admin bar "Howdy" text is shown you can easily change it with your text. You have to add following code into your active theme's function.php file:

 

function replace_howdy_with_your_text( $wp_admin_bar ) { $account_info=$wp_admin_bar->get_node('my-account'); $your_title = str_replace( 'Howdy,', 'Your Text', $account_info->title ); $wp_admin_bar->add_node( array( 'id' => 'my-account', 'title' => $your_title, ) ); } add_filter( 'admin_bar_menu', 'replace_howdy_with_your_text', 25 );

Here we use admin_bar_menu filter to replace text.

3. Change wordpress dashboard footer text.

You can change wordpress dashboard footer text by your own text or link or other. You have to add following code into your active theme's function.php file:

 

function custom_footer_admin_text () { echo "Your own text or link"; } add_filter('admin_footer_text', 'custom_footer_admin_text');

Here we use admin_footer_text for change admin footer text. For link you need to use anchor tag ().

4. Create your own Admin Color Scheme  

You can create you own admin color scheme for that you need to create css for your color scheme. Create a directory called admin-css into your active theme and add your css file in it.

Now you have to  add following code into your active theme's function.php file:

function custom_admin_scheme_css() { wp_enqueue_style( 'admin_css', get_template_directory_uri() . '/admin-css/custom_admin_scheme.css' ); } add_action('admin_print_styles', 'custom_admin_scheme_css' );

Hope these steps helped you in all manners. Hire wordpress developer and Feel free to share your inputs/feedbacks.

Share:

Keywords: wordpress development,wordpress plugin,wordpress tricks

Comments

Other related blogs

Canon Phone Support Number |Canon Printer Exceptional Help And Support Service

By : Contact Us - Canon Printer Help

Worked in the production of printers, Canon Phone Support Number is the guideline creator of printin..


How to check compatibility of Norton antivirus with Firefox

By : Nortontechsupport

norton.com/activate is one of the noticeable and set up brands available today. It has contributed a..


Webroot download direct link| Webroot helpline number

By : Webroot Safe Webroot Toll Free : 1-800-834-6919

Malware, spyware, Viruses, Trojans, Root kit, www.webroot.com/safe Spyware and so on attem..


How to disable hp technical support number Assistant?

By : Contact US - Help

First of all think whether you really want to disable HP help desk Assistant or not? HP help desk Su..