I am wondering if it is possible to disable the admin bar for specific pages of my choosing. I have tried to use CSS but it doesn’t seem to work right and everything I try in JS disables it all the time and not on specific pages.
Thanks for the suggestion but those are for removing it all the time, I am only trying to remove it from a couple of pages.I recently tried `if ( !is_page(‘Landing’) ) {
add_filter(‘show_admin_bar’, ‘__return_false’);
}` but it didn’t work and removed it all the time, any suggestions on editing this code to get it to target the pages?
Just tried it and it still removed the admin bar on every page and not just the one page :(. Also when I disable it on mobile the menu gets pushed up and only half of it shows.
New code works great! Only problem is that on the other pages the admin bar shows up bank on mobile, but I have a feeling this is a setting in buddypress.