This file contains 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; | |
} |
This file contains 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 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 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 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 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 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 conditionally_remove_admin_bar() { | |
if (!current_user_can('administrator') && !is_admin()) { | |
show_admin_bar(false); | |
} | |
} | |
add_action('after_setup_theme', 'conditionally_remove_admin_bar'); |
This file contains 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 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 delay_rss_feed($where) { | |
global $wpdb; | |
if ( is_feed() ) { | |
$now = gmdate('Y-m-d H:i:s'); | |
$wait = '10'; | |
$device = 'MINUTE'; | |
$where.= " AND TIMESTAMPDIFF($device, $wpdb->posts.post_date_gmt, '$now') > $wait "; | |
} |
This file contains 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); |
OlderNewer