Title: Hide HTML comment
Last modified: August 31, 2016

---

# Hide HTML comment

 *  Resolved [bdvllrd](https://wordpress.org/support/users/bdvllrd/)
 * (@bdvllrd)
 * [10 years ago](https://wordpress.org/support/topic/hide-html-comment/)
 * For security reasons I would like remove the plugin html comments:
 * <!– All in One SEO Pack 2.3.4.2 by Michael Torbert of Semper Fi Web Design[327,344]–
   >
 * <!– /all in one seo pack –>
 * How can i do this ?
 * [https://wordpress.org/plugins/all-in-one-seo-pack/](https://wordpress.org/plugins/all-in-one-seo-pack/)

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

 *  [Michael Torbert](https://wordpress.org/support/users/hallsofmontezuma/)
 * (@hallsofmontezuma)
 * WordPress Virtuoso
 * [10 years ago](https://wordpress.org/support/topic/hide-html-comment/#post-7421352)
 * We recommend keeping them in for debugging purposes.
    One way to remove it is
   to use an HTML minifier plugin which removes HTML comments automatically.
 *  Thread Starter [bdvllrd](https://wordpress.org/support/users/bdvllrd/)
 * (@bdvllrd)
 * [10 years ago](https://wordpress.org/support/topic/hide-html-comment/#post-7421369)
 * _We recommend keeping them in for debugging purposes._
    for debugging purposes
   or for marketing purposes ? lol
 * _One way to remove it is to use an HTML minifier plugin which removes HTML comments
   automatically. _
 * And then install again a new plugin.
 * Thanks for your answer
 *  Thread Starter [bdvllrd](https://wordpress.org/support/users/bdvllrd/)
 * (@bdvllrd)
 * [10 years ago](https://wordpress.org/support/topic/hide-html-comment/#post-7421433)
 * To remove the unwanted html comments do as follow:
    In the file aioseop_class.
   php inside the function wp_head():
 * 1/ comment the lines around line 1954:
 *     ```
       /*
       			if ( AIOSEOPPRO ) {
       			echo "\n<!-- All in One SEO Pack Pro $this->version by Michael Torbert of Semper Fi Web Design";
       			} else {
       				echo "\n<!-- All in One SEO Pack $this->version by Michael Torbert of Semper Fi Web Design";
       			}
       			if ( $this->ob_start_detected )
       				echo "ob_start_detected ";
       			echo "[$this->title_start,$this->title_end] ";
       			echo "-->\n";
       */
       ```
   
 * 2/ around line 2072:
 *     ```
       /*
       			if ( AIOSEOPPRO ) {
       			echo "<!-- /all in one seo pack pro -->\n";
       			} else{
       				echo "<!-- /all in one seo pack -->\n";
       			}
       */
       ```
   
 * Unfortunately, you should retry the same thing at each release of the plugin.
 *  Anonymous User 13859623
 * (@anonymized-13859623)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/hide-html-comment/#post-8872894)
 * Thanks! you are so awesome!!!! That comment has been bugging me and the agency
   I work with!

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

The topic ‘Hide HTML comment’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-seo-pack/assets/icon.svg?rev=2443290)
 * [All in One SEO – Powerful SEO Plugin to Boost SEO Rankings & Increase Traffic](https://wordpress.org/plugins/all-in-one-seo-pack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-seo-pack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-seo-pack/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-seo-pack/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: Anonymous User 13859623
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/hide-html-comment/#post-8872894)
 * Status: resolved