[wp-trac] [WordPress Trac] #16667: Admin Bar CSS Override Bugs

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 26 00:43:59 UTC 2011


#16667: Admin Bar CSS Override Bugs
--------------------------+-------------------------
 Reporter:  JohnONolan    |       Owner:  JohnONolan
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.1.1
Component:  UI            |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:  ui-feedback   |
--------------------------+-------------------------

Comment (by jtsternberg):

 Replying to [comment:6 JohnONolan]:
 > Workaround for oversized user/site image
 >
 > {{{
 > add_action('admin_head', 'nav_bar_fix');
 >
 > function nav_bar_fix() {
 > echo '
 > <style type="text/css">
 > #wpadminbar .quicklinks li#wp-admin-bar-my-account-with-avatar > a img
 {width:16px; height 16px;}
 > </style>
 > ';
 > }
 > }}}
 >
 This fix is only needed if you have replaced the default gravatar with
 your own image that's larger than 16 px. Also the fix above needs a small
 tweak to fix the avatar display on the front end also:

 {{{
 add_action('wp_head', 'nav_bar_fix');
 add_action('admin_head', 'nav_bar_fix');
 function nav_bar_fix() {
 echo '<style type="text/css">
 #wpadminbar .quicklinks li#wp-admin-bar-my-account-with-avatar > a img
 {width:16px; height 16px;}
 </style>';
 }
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16667#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list