Title: Commenting Out Archive
Last modified: August 18, 2016

---

# Commenting Out Archive

 *  Resolved [csilkman](https://wordpress.org/support/users/csilkman/)
 * (@csilkman)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/commenting-out-archive/)
 * On the side-bar I want to delete the “Archive” text/link but I don’t like to 
   delete actual code. Is there a way I can just comment that part out so I can 
   get it back in tht future? I assume this is what I need to comment:
 * <?php } ?>
 *  <?php wp_list_pages(‘title_li=<h2>Navigation</h2>’ ); ?>
    - <h2>Archives</h2>
 *  -  <?php wp_get_archives(‘type=monthly’); ?>
 * But I don’t know where to put the /* */

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

 *  [Cyndy Otty](https://wordpress.org/support/users/ceo/)
 * (@ceo)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/commenting-out-archive/#post-271258)
 * > `<!--<h2>Archives</h2>-->
   >  <?php //wp_get_archives('type=monthly'); ?>
 * I assume you still want the navigation on the side – so the rest of the code 
   can’t be commented out.
 *  Thread Starter [csilkman](https://wordpress.org/support/users/csilkman/)
 * (@csilkman)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/commenting-out-archive/#post-271260)
 * Perfect thanks.

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

The topic ‘Commenting Out Archive’ is closed to new replies.

## Tags

 * [archives](https://wordpress.org/support/topic-tag/archives/)
 * [out](https://wordpress.org/support/topic-tag/out/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [csilkman](https://wordpress.org/support/users/csilkman/)
 * Last activity: [20 years, 7 months ago](https://wordpress.org/support/topic/commenting-out-archive/#post-271260)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
