Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Author Coen Jacobs

    (@coenjacobs)

    I pushed version 0.2 this morning, which should fix this issue. It clears the white space at the top and adds 28 extra pixels of clearance at the bottom. ??

    Thread Starter Larry Overton

    (@larryoverton)

    Will try it out. Depending on the theme I don’t care for the bar but being at the bottom is a useful feature for most

    Thread Starter Larry Overton

    (@larryoverton)

    Sorry, didn’t work here. Cleared everything in cache on 3 browsers and also restarted and I have the same as with version 1. May be what I have in the header & footer though. I have allot added in both

    Plugin Author Coen Jacobs

    (@coenjacobs)

    Thanks for checking it, 0.2.1 should fix the remaining problems. Should be live in plugin repository any minute now.

    Thread Starter Larry Overton

    (@larryoverton)

    2.2 should fix it. The void at top is now gone, the credit at very bottom still hidden ( 28px or so )…in Chrome, IE 8 and Firefox. Safari, all kinds of stuff like login in the sidebar missing anyway so it does not show at all. Apple is not my cup of tea.

    All in all, I like it even if it hides the credits…That anyone can fix. What is nice about it is many of us use our own custom header and it tends to interfere while at top. Much better at bottom where the links in it can be useful to others

    Thread Starter Larry Overton

    (@larryoverton)

    Thought I would leave you the link to the site I am trying it on. https://www.alpost261.org/

    Thread Starter Larry Overton

    (@larryoverton)

    st noticed it did do 1 other thing many won’t like…We lost a part of the header in admin now

    Plugin Author Coen Jacobs

    (@coenjacobs)

    Version 0.2.2 is now live in the plugin directory. Should fix the header in admin bug. Looking into a way to show all footer contents, in a clean way, on all themes.

    Thread Starter Larry Overton

    (@larryoverton)

    Nice work Coen, does fix the admin header…On your way brother…lookin good!I am leaving it on active. I can deal with the footer issue as is while you make necessary changes or change that area myself for now.

    This is going to be a very useful plugin for many!

    Thread Starter Larry Overton

    (@larryoverton)

    Damnit…spoke just a bit soon there…it rolls the bug back in on whitespace in the header …main pages

    Thread Starter Larry Overton

    (@larryoverton)

    Did allot of rework on my end just to make sure…Your plugin works with the default theme and some others I have here as is. Html in some widgets mis-aligned much of it, fixed that. As for my theme…incompatible as it stands on its own. Your plugin works fine. Nice work!

    Thread Starter Larry Overton

    (@larryoverton)

    top fix for me is resize the background pic by 200px and set the design for no zoom. If no background pic, no fix would be needed.

    Bottom fix is: Just before <div id=”footer-body”>
    Put in:

    <table style=”width: 100%” cellspacing=”0″ cellpadding=”0″>
    <tr>
    <td bgcolor=”#212121″ style=”height: 40px” valign=”top”><font size=”2″> All Credits Here</font></td>
    </tr>
    </table>

    Looks much better than originally and works in Opera, Safari, Firefox, Chrome and IE 8. In Safari and Opera, the admin bar does not show for me even with the default theme

    To make this truly work, you must remove the style in the WP core that tells the HTML property to add a margin. Go to your wp-includes directory and edit “admin-bar.php”.

    At line 309, change this:

    function _admin_bar_bump_cb() { ?>
    <style type="text/css">
    	html { margin-top: 28px !important; }
    	* html body { margin-top: 28px !important; }
    </style>

    To this:

    function _admin_bar_bump_cb() { ?>
    <style type="text/css">
    /*	REMOVE TOP MARGIN FOR ADMIN BAR TO BOTTOM PLUGIN
    	html { margin-top: 28px !important; }
    	* html body { margin-top: 28px !important; }
    */
    </style>

    Reload the page and the margin is gone.

    I always recommend commenting out code instead of deleting it, in case you ever have to revert the site.

    Thread Starter Larry Overton

    (@larryoverton)

    Absolutely Perfect now! That admin bar.php mod completes it for my use. Thanks to you both!

    Plugin Author Coen Jacobs

    (@coenjacobs)

    True, this works. But the thing is; changing core files is always a no go. I’m not happy with the ‘!important’ part of the CSS of the admin bar, it should be done without that kind of code. But changing core files is never a good thing.

    That’s the reason why I added a negative padding to the body, but that doesn’t seem to work in all themes.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Stick Admin Bar To Bottom’ is closed to new replies.