title: Center custom login field in menu bar Wordpress
body: <p>I found this code to add a login &amp; password field into the menu bar of my wordpress theme. Looks pretty good so far but very out of place..</p>
  
  <pre><code>    add_filter('wp_nav_menu_items', 'add_login_logout_link', 10, 2);
  
  function add_login_logout_link($items, $args) {
          // start buffering
          ob_start();
          // this is the actual form function
          wp_login_form($args); // $args optional see below ..
          // get buffering
          $loginoutform = ob_get_contents();
          // clean buffering
          ob_end_clean();
          $items .= $loginoutform ; // concatenate buffering with items ...
      return $items;
  }
  </code></pre>
  
  <p>It places itself on the right side underneath my main menu navigation. What I would like to do is have the login fields centered horizontally in the menu bar. </p>
  
  <p>I would greatly appreciate any information or code to help me achieve the sleek login option I'm going for. Site is <a href="https://cypherbeats.com" rel="nofollow">https://cypherbeats.com</a></p>