Created
May 8, 2015 02:35
-
-
Save jfeliweb/66f97f577408511308fa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /********************** | |
| Foundation Top-Bar | |
| ***********************/ | |
| add_action('wp_head', 'admin_bar_fix', 5); | |
| function admin_bar_fix() { | |
| if( !is_admin() && is_admin_bar_showing() ) { | |
| remove_action( 'wp_head', '_admin_bar_bump_cb' ); | |
| $output = '<style type="text/css">'."\n\t"; | |
| //$output .= 'body.admin-bar { padding-top: 28px; }'."\n"; | |
| $output .= 'body.admin-bar .top-bar { margin-top: 28px; }'."\n"; | |
| $output .= '</style>'."\n"; | |
| echo $output; | |
| } | |
| } // Do not remove |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment