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
show_admin_bar(false); |
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
#wpadminbar { | |
display: none; | |
} |
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
add_action('admin_bar_menu', 'add_toolbar_items', 11); |
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 add_toolbar_items($wp_admin_bar) { | |
$wp_admin_bar->add_node( array( | |
'id' => 'supportlink', | |
'title' => 'Contact support', | |
'href' => 'mailto:[email protected]', | |
) ); | |
} | |
add_action('admin_bar_menu', 'add_toolbar_items', 999); |
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 remove_toolbar_items($wp_adminbar) { | |
$wp_adminbar->remove_node('wpseo-menu'); | |
} | |
add_action('admin_bar_menu', 'remove_toolbar_items', 999); |
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
#wpadminbar .quicklinks>ul>li { | |
position:relative; | |
} | |
#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper { | |
bottom: 32px; | |
} |
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
body.admin-bar { | |
margin-top: -32px; | |
padding-bottom: 32px; | |
} | |
#wpadminbar { | |
top: auto !important; | |
bottom: 0; | |
} |
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 style_tool_bar() { | |
echo ' | |
<style type="text/css"> | |
#wpadminbar { | |
background: blue; | |
} | |
</style>'; | |
} | |
add_action( 'admin_head', 'style_tool_bar' ); | |
add_action( 'wp_head', 'style_tool_bar' ); |
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
#wpadminbar { | |
background: blue; | |
} |
NewerOlder