Created
January 21, 2015 06:38
-
-
Save setuix/08ea07a3a3ec79d3ecf1 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
function fb_move_admin_bar() { ?> | |
<style type="text/css"> | |
body { | |
margin-top: -28px; | |
padding-bottom: 28px; | |
} | |
body.admin-bar <a href="/web/20131207125717/http://search.twitter.com/search?q=%23wphead" class="tweet-hashtag">#wphead</a> { | |
padding-top: 0; | |
} | |
body.admin-bar <a href="/web/20131207125717/http://search.twitter.com/search?q=%23footer" class="tweet-hashtag">#footer</a> { | |
padding-bottom: 28px; | |
} | |
<a href="/web/20131207125717/http://search.twitter.com/search?q=%23wpadminbar" class="tweet-hashtag">#wpadminbar</a> { | |
top: auto !important; | |
bottom: 0; | |
} | |
<a href="/web/20131207125717/http://search.twitter.com/search?q=%23wpadminbar" class="tweet-hashtag">#wpadminbar</a> .quicklinks .menupop ul { | |
bottom: 28px; | |
} | |
</style> | |
<?php } | |
// on backend area | |
add_action( 'admin_head', 'fb_move_admin_bar' ); | |
// on frontend area | |
add_action( 'wp_head', 'fb_move_admin_bar' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment