How to Move WordPress Admin Bar to the Bottom

Yesterday, I got an Email from one of my readers. He wrote,”I am a daily reader of Postfever.com and i love the tips & information that you share regarding blogging. I need an help from you. I am really annoyed with the wordpress admin bar at the top. Can you help me out to move it to the bottom. Thanks in Advance.

So, here is the way to do this.

 

How to move WordPress Admin Bar to the Bottom

 

There are two ways of doing this:

1. Using the Code

2. Using a Plugin

Here, we would be sharing both the ways. Whichever way suits you, you can go with that.

 

Using the Code

1. Open the functions.php file of your theme.

2. Paste the following code in it

  • function fb_move_admin_bar() {
  • echo ‘
  • <style type=”text/css”>
  • body {
  • margin-top: -28px;
  • padding-bottom: 28px;
  • }
  • body.admin-bar #wphead {
  • padding-top: 0;
  • }
  • body.admin-bar #footer {
  • padding-bottom: 28px;
  • }
  • #wpadminbar {
  • top: auto !important;
  • bottom: 0;
  • }
  • #wpadminbar .quicklinks .menupop ul {
  • bottom: 28px;
  • }
  • </style>’;
  • }
  • // on backend area
  • add_action( ‘admin_head’, ‘fb_move_admin_bar’ );
  • // on frontend area
  • add_action( ‘wp_head’, ‘fb_move_admin_bar’ );

3. Save the file. As soon as you will save it, your wordpress admin bar would move to the bottom like in this pic:

 

 

Using a Plugin

If you are a kind of person that don’t want to get your hands dirty with the coding. You can use a plugin.
Wordpress.org provides a plugin named: ‘Stick Admin Bar to Bottom‘. You can use this plugin, and as soon as you install this plugin your wordpress admin bar would move to the bottom.

Read: How to Install a Plugin in WordPress

 

Do share with us your reviews about the post?

Follow Us Via Facebook OR Twitter


If you enjoyed this article, get email updates (it's free).

4 Responses to “How to Move WordPress Admin Bar to the Bottom”

  1. Mohit Bumb

    Cool Nice Trick

    Reply to this comment
  2. That is a very good trick to know. Thanks for sharing this mate!!

    Reply to this comment
  3. I prefer using the code rather than using a plugin. Using too many plugins will slow down your blog, what do you say harneet ?

    Reply to this comment
    • Ya, Bharat you are right. But it totally depends on how a person is comfortable. If a person do not want to get into coding, so plugin is a nice way to do it easily.

      Reply to this comment

Leave a Reply


PREVIOUS POST :

NEXT POST :