Missing Toolbar/Admin Bar on subdomain page using WordPress integration
Missing Toolbar/Admin Bar on subdomain page using WordPress integration
Missing Toolbar/Admin Bar on subdomain page using WordPress integration
Figured it out function add_toolbar_items($admin_bar){ if(‘profile’ == get_post_type()) $admin_bar->add_menu( array( ‘id’ => ‘main-title’, ‘title’ => ‘Targeting’, )); } add_action(‘admin_bar_menu’, ‘add_toolbar_items’, 100);
The “My Sites” icon allows you to switch between multiple wordpress sites which you have associated to your admin account. https://codex.wordpress.org/Dashboard_My_Sites_Screen
If you look at user profile in WordPress administration you would see that there is an option: Show Toolbar when viewing site. If you uncheck this option user will not see an admin bar. This option is checked by default when user is registering to your store. You can disable it using user_register filter. function … Read more
When admin is logged in, admin-bar-rtl.min.css is not loaded on website view (the admin-bar is shown in the footer without CSS)
How to add Mark as private to WordPress Admin Bar for Posts
So a straight forward way to do this is to use CSS if you want to pick out a few items to not display on the admin. These items you’ve provided look like the standard menu items with a different style attached, though I can’t be sure. If not, you’ll need to provide more clearer … Read more
How to change username in wp admin bar
Looks like i found the piece of code causing the issue : function remove_admin_bar() { if (! current_user_can(‘administrator’, ‘editor’) && !is_admin() && !is_editor()) { show_admin_bar(false); } } add_action(‘after_setup_theme’, ‘remove_admin_bar’); I switched show_admin_bar(false); to show_admin_bar(true);
You can add some code into your theme’s functions.php file that checks the post type or whatever condition you want and when the condition is met, add this filter: add_filter( ‘show_admin_bar’, ‘__return_false’ ); See this codex page for more information: http://codex.wordpress.org/Plugin_API/Filter_Reference/show_admin_bar