Re: Way to disable admin bar on certain themes?
Hi Tedmann,
There’s two ways to go about this:
(1) CSS route:
In your /wp-content/themes/carrington-mobile-1.0.2/style.css file, add this:
body {padding-top:0 !important;}
#wp-admin-bar {display:none !important;}
(2) Theme functions.php route:
In your /wp-content/themes/carrington-mobile-1.0.2/functions.php file, add this:
remove_action( 'wp_footer', 'bp_core_admin_bar' );
remove_action( 'admin_footer', 'bp_core_admin_bar' );
—
Option #1 will simply hide the admin bar from view, however it will still be loaded if you view the HTML source.
Option #2 will completely remove the admin bar from the HTML source.
Not completely 100% that code will work, but give it a shot and report back.