Title: Missing Sidebar.php script?
Last modified: August 21, 2016

---

# Missing Sidebar.php script?

 *  [Run_Retreat](https://wordpress.org/support/users/run_retreat/)
 * (@run_retreat)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/missing-sidebarphp-script/)
 * Hi, I have been unable to place any content in my primary sidebar menu. I’m trying
   get a categories menu in the primary sidebar. I’m using the WordPress Twenty-
   Fourteen theme. I believe the problem may be with the sidebar.php file, but I’m
   not sure. It looks like some coding may be missing from the file (my site was
   hacked a few weeks ago). This is all I have under the primary sidebar coding:
 *     ```
       <div id="primary-sidebar" class="primary-sidebar widget-area" role="complementary">
   
       <?php dynamic_sidebar( 'sidebar-1' ); ?>
       	</div><!-- #primary-sidebar -->
       	<?php endif; ?>
       </div><!-- #secondary -->
       ```
   
 * Is this it or is there something missing? I’m fairly new at WordPress and coding,
   so please keep that in mind.

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/missing-sidebarphp-script/#post-5107771)
 * There’s nothing obviously wrong with that code. Re-upload a fresh, unpacked, 
   copy of the theme’s folder to wp-content/themes using [FTP](http://codex.wordpress.org/FTP_Clients)
   or whatever file management application your host provides.
    [https://wordpress.org/themes/twentyfourteen](https://wordpress.org/themes/twentyfourteen)
 *  Thread Starter [Run_Retreat](https://wordpress.org/support/users/run_retreat/)
 * (@run_retreat)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/missing-sidebarphp-script/#post-5107785)
 * Thanks! Can you provide some more detail on how to do that or recommend me to
   an article?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/missing-sidebarphp-script/#post-5107790)
 * Please see the first link that I posted above.

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

The topic ‘Missing Sidebar.php script?’ is closed to new replies.

## Tags

 * [Coding](https://wordpress.org/support/topic-tag/coding/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [sidebar](https://wordpress.org/support/topic-tag/sidebar/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/missing-sidebarphp-script/#post-5107790)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
