Cornerstone Admin Bar Menu Item since Update

No need to respond to this post, as it’s just a work-around for anyone else who has customers moaning about the formatting of the Cornerstone menu as mentioned in this post by @Tech4Eleven - Cornerstone menu item missing from top bar after Wordpress 6.5 Update

Adding the following to functions.php of your child theme will add the necessary CSS to correct the formatting issue with the menu:

// Cornerstone Admin Bar Menu Item
// =============================================================================
add_action('wp_head', 'my_admin_custom_css');
add_action('admin_head', 'my_admin_custom_css');
function my_admin_custom_css() {
  if ( is_admin_bar_showing() ) { ?>
  <style>
  #wp-admin-bar-tco-main .tco-admin-bar-logo.ab-item {
    display: inline-block !important;
  }
  #wp-admin-bar-tco-main a.ab-item {
    display: flex;
    align-items: center;
  }
  </style>
  <?php
  }
}
1 Like

Hi @sguilliard,

Thanks for sharing the solution here.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.