title: PHP Display None?
body: <p>I'm trying to hide the "topbar" if user is logged in.
  Example: <a href="http://prntscr.com/chcwhl" rel="nofollow">http://prntscr.com/chcwhl</a></p>
  
  <p>My code at the moment is:</p>
  
  <pre><code>add_filter( 'wp_nav_menu_items', 'woohoo_add_auth_links', 10 , 2 );
  function woohoo_add_auth_links( $items, $args )
  {
      if( $args-&gt;theme_location == 'topmenu' )
      {
          if ( is_user_logged_in() ) {
              echo '&lt;style&gt;#topbar { display:none;}&lt;/style&gt;';
          }
          elseif ( !is_user_logged_in() ) {
              $items .= '&lt;li&gt;&lt;a href="'. site_url('wp-login.php') .'"&gt;Log In&lt;/a&gt;&lt;/li&gt;';
              $items .= '&lt;li&gt;&lt;a href="'. site_url('wp-login.php?action=register') .'"&gt;Register&lt;/a&gt;&lt;/li&gt;';
          }
      }
      return $items;
  }
  </code></pre>
  
  <p>I'm sure that the topbar is <code>&lt;div class="topbar"&gt;</code> so I'm a little confused why it's not hiding...</p>