Align menu on Admin Bar
-
Hello,
I use this following code to add a login link for logout userfunction add_login_link( $meta = FALSE ) { global $wp_admin_bar, $blog_id; if ( is_user_logged_in() ) { return false; } $wp_admin_bar->add_menu( array( 'id' => 'login_menu', 'title' => __( 'Log in or Sign up' ), 'href' => get_home_url( $blog_id, '/wp-login.php' ) ) ); } add_filter( 'show_admin_bar', '__return_true' ); /* turn on adminbar for logged out users */ add_action( 'admin_bar_menu', 'add_login_link', 15 );However, thi Log in or Sign up link was put on the left. How to move it to the end right?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Align menu on Admin Bar’ is closed to new replies.