How to edit the Default admin bar callback
-
Hi everyone, I’m building a WordPress website for a client and i just notice an empty space before the site header, i’ve tried all i know on CSS but the empty space won’t go, i traced the file and found it inside (wp-includes/admin-bar.php) after modification, the empty space still show on the site frontend if a user is logged in.
Below are the default code, Please i need some help anybody know how to modify this function?
/**
* Default admin bar callback.
*
* @since 3.1.0
*/
function _admin_bar_bump_cb() { ?>
<style type=”text/css” media=”screen”>
html { margin-top: 32px !important; }
* html body { margin-top: 32px !important; }
@media screen and ( max-width: 782px ) {
html { margin-top: 46px !important; }
* html body { margin-top: 46px !important; }
}
</style>
<?php
}
- The topic ‘How to edit the Default admin bar callback’ is closed to new replies.