Tried to remove WP Admin Bar– my entire dashboard disappeared
-
I am completely new to WP. I’ve been working on the design and tried to delete/disable the WP Admin bar at the top of the page by adding this code:
1 /* Disable the Admin Bar. */
2 add_filter( ‘show_admin_bar’, ‘__return_false’ );
3
4 <?php function yoast_hide_admin_bar_settings() {
5 ?>
6 <style type=”text/css”>
7 .show-admin-bar {
8 display: none;
9 }
10 </style>
11 <?php
12 }
13
14 function yoast_disable_admin_bar() {
15 add_filter( ‘show_admin_bar’, ‘__return_false’ );
16 add_action( ‘admin_print_scripts-profile.php’,
17 ‘yoast_hide_admin_bar_settings’ );
18 }
19 add_action( ‘init’, ‘yoast_disable_admin_bar’ , 9 );I’m realizing now that this must have been a stupid thing to do, but I have no idea how to fix it! I can’t get into my dashboard at all to change the css!
Can anybody walk me through this in baby steps?? Sort of freaking out….
- The topic ‘Tried to remove WP Admin Bar– my entire dashboard disappeared’ is closed to new replies.