WordPress Blue Ball Wallpaper Collection: Ball in Palm (

How to Hide WordPress Admin Bar and Version Number

The WordPress admin bar, located at the top of the screen, can be distracting for some users. Additionally, displaying the WordPress version number may pose a security risk. In this tutorial, we will walk you through the steps to hide the admin bar and version number in WordPress.

If the admin bar bothers you it is easy to remove it!

Step 1: Accessing the functions.php File

To make these changes, we will be adding code snippets to the functions.php file of your WordPress theme. Follow these steps to access the file:

  1. Log in to your WordPress admin area.
  2. Navigate to “Appearance” > “Theme Editor“.

Note: If you are using a child theme, make sure you select the appropriate theme from the “Select theme to edit” dropdown.

  1. On the right-hand side, you will see a list of theme files. Locate and click on the functions.php file.

Step 2: Removing the Admin Bar

To remove the admin bar completely, we can use a simple code snippet. Follow these instructions:

  1. Scroll to the bottom of the functions.php file.
  2. Insert the following code snippet:
add_filter('show_admin_bar', '__return_false');
  1. Click the “Update File” button to save the changes.

Tip: If you prefer a shorter version of the code, you can also use the following snippet:

show_admin_bar(false);

Now, the admin bar will no longer be visible to all users of your WordPress website.

Step 3: Disabling the WordPress Version Number

To hide the WordPress version number from being displayed, we will add another code snippet. Follow these instructions:

  1. Scroll to the bottom of the functions.php file, below the code you added in Step 2.
  2. Insert the following code snippet:
function wpversion_remove_version() {
    return '';
}
add_filter('the_generator', 'wpversion_remove_version');
  1. Click the “Update File” button to save the changes.

After completing these steps, the WordPress version number will no longer be visible.

Conclusion

In this tutorial, we have shown you how to easily hide the WordPress admin bar and version number. By following these steps and adding the provided code snippets to your functions.php file, you can customize the appearance of your WordPress website and enhance the security of your information.

Remember to always create a backup of your theme files before making any changes, and test your website thoroughly to ensure the desired effects have been achieved.

Happy customizing!