Title: Commenting out code in a template
Last modified: October 3, 2018

---

# Commenting out code in a template

 *  [philipt18](https://wordpress.org/support/users/philipt18/)
 * (@philipt18)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/commenting-out-code-in-a-template/)
 * My site is build on top of many templates which I load into pages. Some of these
   templates are quite complex. I have one where I need to temporarily remove a 
   section, and I’ll like to just comment it out so I can add it back easily later.
   What’s the proper way to comment out code in a loaded template? Thanks.

The topic ‘Commenting out code in a template’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [philipt18](https://wordpress.org/support/users/philipt18/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/commenting-out-code-in-a-template/)
 * Status: not resolved