• monofasico

    (@monofasico)


    Hi, I created a new button to admin top bar, but when i shrink window size it disappears as soon as the menu icon appear.

    function toolbar_link_to_mypage( $wp_admin_bar ) {
       $args = array(
          'id'    => 'quick-exit',
          'title' => 'Bye',
          'href'  => wp_logout_url(),
          'parent' => 'top-secondary',
          'meta'  => array( 'class' => 'my-toolbar-page' )
       );
       $wp_admin_bar->add_node( $args );
    }
    add_action( 'admin_bar_menu', 'toolbar_link_to_mypage', 999 );

    Can somebody please help me?
    Many thanks

Viewing 1 replies (of 1 total)
  • Thread Starter monofasico

    (@monofasico)

    probably is just some simple css stuff but i can’t figure it out

Viewing 1 replies (of 1 total)

The topic ‘wp-admin top bar button doesn't appear on mobile’ is closed to new replies.