title: How to add sidebar at single.php in Wordpress
body: <p>I'm having a problem when it comes to adding sidebar at single.php. I already included </p>
  
  <pre><code>&lt;?php get_sidebar(); ?&gt;
  </code></pre>
  
  <p>But it seems to be appear below and the content(Blog post) still at the middle of the whole page. I've tried to check all of the previous forum but none of them helped me to figure this out.</p>
  
  <p>Here's my single.php</p>
  
  <pre><code>&lt;?php
  /**
   * The template for displaying all single posts.
   *
   * @package Tesseract
  */
  
  get_header(); ?&gt;
  &lt;div id="primary" class="full-width-page"&gt;
      &lt;main id="main" class="site-main" role="main"&gt;
  
      &lt;?php while ( have_posts() ) : the_post(); ?&gt;
  
          &lt;?php get_template_part( 'content', 'single' ); ?&gt;
  
          &lt;?php tesseract_post_nav(); ?&gt;
  
          &lt;?php
              // If comments are open or we have at least one comment, load up the comment template
              if ( comments_open() || get_comments_number() ) :
                  comments_template();
              endif;
          ?&gt;
      &lt;?php comments_template(); ?&gt;
      &lt;?php endwhile; // end of the loop. ?&gt;
  
      &lt;/main&gt;&lt;!-- #main --&gt;
  &lt;/div&gt;&lt;!-- #primary --&gt;
  &lt;?php get_sidebar(); ?&gt;
  &lt;?php get_footer(); ?&gt;
  </code></pre>