Viewing 4 replies - 1 through 4 (of 4 total)
  • Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    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

    (@bdvllrd)

    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

    (@bdvllrd)

    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)

    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.