WordPress.org

Ready to get started?Download WordPress

Forums

Tried to remove WP Admin Bar-- my entire dashboard disappeared (4 posts)

  1. aswank
    Member
    Posted 1 year ago #

    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....

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Access the site using FTP, download the relevant file and remove your changes.

  3. blessanne7
    Member
    Posted 1 year ago #

    am new to wp, and and in the proecess of editing ang setting up myh website..need help my entire DASHBOARD MENUS disappear, after changing back to my original administrator setting..help me pls if anyone can tell me a step to restored my Dashboard Menus..pls!

  4. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    @blessanne7, Please start a new thread - this one is not related uniquely to your issue.

Topic Closed

This topic has been closed to new replies.

About this Topic