[wp-trac] [WordPress Trac] #43244: Admin toolbar breaking full height layouts

WordPress Trac noreply at wordpress.org
Wed Feb 7 10:27:09 UTC 2018


#43244: Admin toolbar breaking full height layouts
-------------------------+------------------------------
 Reporter:  loranrendel  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Toolbar      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  close        |     Focuses:
-------------------------+------------------------------

Comment (by loranrendel):

 I already do following:


 {{{
 add_action('get_header', 'fix_adminbar');

 function fix_adminbar()
 {
     remove_action('wp_head', '_admin_bar_bump_cb');
     add_action('wp_head', 'admin_bar_bump_cb');
 }

 function admin_bar_bump_cb()
 {
     echo '<style type="text/css" media="screen">
         html { padding-top: 32px !important; }
         @media screen and ( max-width: 782px ) {
             html { padding-top: 46px !important; }
         }
     </style>';
 }
 }}}

 on all my sites.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43244#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list