Title: Removing hard coded widgets
Last modified: August 21, 2016

---

# Removing hard coded widgets

 *  Resolved [sandyc](https://wordpress.org/support/users/sandyc/)
 * (@sandyc)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/removing-hard-coded-widgets/)
 * I know this subject has been discussed in several posts, but I am new to WordPress
   and need a little hand holding regarding editing the sidebar.php file. Help???

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

 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/removing-hard-coded-widgets/#post-3874895)
 * [http://codex.wordpress.org/Forum_Welcome#Include_as_much_information_as_possible](http://codex.wordpress.org/Forum_Welcome#Include_as_much_information_as_possible)
 *  Thread Starter [sandyc](https://wordpress.org/support/users/sandyc/)
 * (@sandyc)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/removing-hard-coded-widgets/#post-3874905)
 * This is the HTML code:
 *     ```
       <?php responsive_widgets_before(); // above widgets container hook ?>
       <div id="widgets" class="<?php echo implode( ' ', responsive_get_sidebar_classes() ); ?>">
       	<?php responsive_widgets(); // above widgets hook ?>
   
       		<?php if (!dynamic_sidebar('main-sidebar')) : ?>
       		<div class="widget-wrapper">
   
       			<div class="widget-title"><?php _e('In Archive', 'responsive'); ?></div>
   
       <ul>
       					<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
       				</ul>
       		</div><!-- end of .widget-wrapper -->
       		<?php endif; //end of main-sidebar ?>
   
       	<?php responsive_widgets_end(); // after widgets hook ?>
       </div><!-- end of #widgets -->
       <?php responsive_widgets_after(); // after widgets container hook ?>
       ```
   
 * I understand a little HTML, but this is too complex.
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/removing-hard-coded-widgets/#post-3874906)
 * What theme is this? What are you trying to do?
 *  Thread Starter [sandyc](https://wordpress.org/support/users/sandyc/)
 * (@sandyc)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/removing-hard-coded-widgets/#post-3874914)
 * I have deactivated all of the widgets in my site, namsparties4kids.com, but the
   archive widget remains. I do not want any widget to show. I tried adding a blank
   text widget, but that only served to display a visible empty box on the page.
   The theme is responsive. As I said, I am learning.
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/removing-hard-coded-widgets/#post-3874916)
 * For pages or posts, you should be able to select a full-width template that won’t
   show any sidebar at all. On the post or page screen, look for the template pull
   down in the Page Attributes box on the right side of the screen.
 *  Thread Starter [sandyc](https://wordpress.org/support/users/sandyc/)
 * (@sandyc)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/removing-hard-coded-widgets/#post-3874926)
 * Thank you. It worked. This is a learning curve.

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

The topic ‘Removing hard coded widgets’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [sandyc](https://wordpress.org/support/users/sandyc/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/removing-hard-coded-widgets/#post-3874926)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
