Title: Adding Sidebar Widget to content-single.php
Last modified: August 22, 2016

---

# Adding Sidebar Widget to content-single.php

 *  Resolved [HodRod](https://wordpress.org/support/users/hodrod/)
 * (@hodrod)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-sidebar-widget-to-content-singlephp/)
 * I am trying to add the Sidebar Widget to the content-single.php file. Below is
   where I have it added right now. It almost works but if I use a header, the content
   of the post gets pushed below the widget but if I put it anywhere else, all the
   content shows up below the widget.
 *     ```
       <div class="entry-content">
            <div class="postmeta">
                               	<!-- <div class="post-date"><?php echo get_the_date(); ?></div><!-- post-date -->
                                   <!-- <div class="post-comment"><?php comments_number(); ?></div><!-- post-comment --> <div class="clear" style="margin-bottom: 30px;"></div>
                                   <?php get_sidebar(); ?>
       						</div><!-- postmeta -->
       		<div class="post-thumb" align="center">
       ```
   
 * Is there something I need to put around the get_sidebar(), like a <div> or something
   to make it fit correctly on the right side of the screen?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Theme Author [sonalsinha21](https://wordpress.org/support/users/sonalsinha21/)
 * (@sonalsinha21)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-sidebar-widget-to-content-singlephp/#post-5389526)
 * Hi,
 * Our blog template already has a sidebar with it. So not sure why you are trying
   to add a sidebar widget to content-single.php.
 * It already has a sidebar and a widget.
 *  Thread Starter [HodRod](https://wordpress.org/support/users/hodrod/)
 * (@hodrod)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-sidebar-widget-to-content-singlephp/#post-5389549)
 * It’s not the Blog Template, it’s when you view a individual Post that there is
   no sidebar widget.
 *  Theme Author [sonalsinha21](https://wordpress.org/support/users/sonalsinha21/)
 * (@sonalsinha21)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-sidebar-widget-to-content-singlephp/#post-5389557)
 * Hi,
 * Strange because we have sidebar. Anyways please check wp-content/themes/skt-full-
   width/content-single.php
 * And add sidebar code.
 * In case there is a sidebar and no widget is appearing. Add widgets from Appearance
   >Widgets>Primary Sidebar
 * It should appear.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Adding Sidebar Widget to content-single.php’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/skt-full-width/2.1/screenshot.
   png)
 * SKT Full Width
 * [Support Threads](https://wordpress.org/support/theme/skt-full-width/)
 * [Active Topics](https://wordpress.org/support/theme/skt-full-width/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/skt-full-width/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/skt-full-width/reviews/)

## Tags

 * [content-single.php](https://wordpress.org/support/topic-tag/content-single-php/)

 * 3 replies
 * 2 participants
 * Last reply from: [sonalsinha21](https://wordpress.org/support/users/sonalsinha21/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/adding-sidebar-widget-to-content-singlephp/#post-5389557)
 * Status: resolved