title: Add login/logout to menu Woocommerce Wordpress
body: <p>I am trying to figure out how to add a login/logout to the menu.  When I add this code to the wordpress header the content and sidebar disappear.  How can I add the login/logout to the menu without losing the rest of my page.  I have tried adding it in the settings menu and it doesn't work with the theme I'm using.</p>
  
  <pre><code>&lt;ul&gt;
  &lt;?php
  $myaccount_page_id = get_option( 'woocommerce_myaccount_page_id' );
  if ( $myaccount_page_id  &amp;&amp; !is_user_logged_in()) {
      $myaccount_page_url = get_permalink( $myaccount_page_id );
      ?&gt;
      &lt;li&gt;&lt;a href="&lt;?php echo $myaccount_page_url; ?&gt;" class="login-header"&gt;&lt;?php _e('Login', 'woocommerce'); ?&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;?php
  }
  $myaccount_page_id = get_option( 'woocommerce_myaccount_page_id' );
  if ( $myaccount_page_id &amp;&amp; is_user_logged_in()) {
      $logout_url = wp_logout_url( get_permalink( $myaccount_page_id ) );
      if ( get_option( 'woocommerce_force_ssl_checkout' ) == 'yes' )
          $logout_url = str_replace( 'http:', 'https:', $logout_url );
      ?&gt;
      &lt;li&gt;&lt;a href="&lt;?php echo $logout_url; ?&gt;" class="login-header"&gt;&lt;?php _e('Logout', 'woocommerce'); ?&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;?php } ?&gt;
      &lt;li&gt;&lt;a href="&lt;?php echo $woocommerce-&gt;cart-&gt;get_cart_url(); ?&gt;" class="cart-header"&gt;&lt;?php _e('Shopping Cart', 'woocommerce'); ?&gt; &lt;?php echo sprintf(_n('(%d)', '(%d)', $woocommerce-&gt;cart-&gt;cart_contents_count, 'woothemes'), $woocommerce-&gt;cart-&gt;cart_contents_count);?&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="&lt;?php echo $woocommerce-&gt;cart-&gt;get_checkout_url(); ?&gt;" class="check-header"&gt;&lt;?php _e('Checkout', 'woocommerce'); ?&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>