Monday, November 4, 2013

HOW TO DE-ACTIVATE THE WORDPRESS ADMIN-BAR




Step1: Open the WordPress Folder/Directory
Step2: Open the wp-includes folder/Directory
Step3: Open the admin-bar.php file and uncomment the following lines out as seen below.
/*if ( is_user_logged_in() ) {
                                // Add "About WordPress" link
                                $wp_admin_bar->add_menu( array(
                                                'parent' => 'wp-logo',
                                                'id'     => 'about',
                                                'title'  => __('About WordPress'),
                                                'href'  => self_admin_url( 'about.php' ),
                                ) );
                }

                // Add WordPress.org link
                $wp_admin_bar->add_menu( array(
                                'parent'    => 'wp-logo-external',
                                'id'        => 'wporg',
                                'title'     => __('WordPress.org'),
                                'href'      => __('http://wordpress.org/'),
                ) );

                // Add codex link
                $wp_admin_bar->add_menu( array(
                                'parent'    => 'wp-logo-external',
                                'id'        => 'documentation',
                                'title'     => __('Documentation'),
                                'href'      => __('http://codex.wordpress.org/'),
                ) );

                // Add forums link
                $wp_admin_bar->add_menu( array(
                                'parent'    => 'wp-logo-external',
                                'id'        => 'support-forums',
                                'title'     => __('Support Forums'),
                                'href'      => __('http://wordpress.org/support/'),
                ) );

                // Add feedback link
                $wp_admin_bar->add_menu( array(
                                'parent'    => 'wp-logo-external',
                                'id'        => 'feedback',
                                'title'     => __('Feedback'),
                                'href'      => __('http://wordpress.org/support/forum/requests-and-feedback'),
                ) );*/
Step4: Save then Refresh you site that is all.

No comments:

Post a Comment