Mixed content

Removing mixed content fixer comment from html source

Really Simple SSL adds a html comment to the source of your website. Since 2.4 this is a data attribute. This makes it easy to check if the mixed content fixer is active. This is necessary because sometimes other plugins block the mixed content fixer. If the comment does not appear, you know you have a conflict.

Some users have asked me how to remove it, as they do not want it there, for different reasons. For those who do not want it there, I’ve made a description how to remove it.

Please note that the the automatic detection of plugin conflicts will not work if the comment is removed from the source code.

I’ve added a filter to make it possible to remove it.

Go to your theme’s functions.php in wp-content/themes/your-theme, and open it.

Add the following code:

add_filter("rsssl_fixer_output", "rsssl_comment_remover", 10, 1);

function rsssl_comment_remover($buffer){

//replace the comment with empty string

$buffer = str_replace('data-rsssl="1"', "", $buffer);

return $buffer;

}

Don’t forget to clear your cache to see the result!

Related Articles

  • How to track down mixed content or insecure content

    The built in mixed content fixer in Really Simple SSL fixes all mixed content that’s part of your websource. But there are some types of mixed content that need to...
  • Does Really Simple SSL make my site slower?

    When you’ve activated Really Simple SSL on your site, in some cases you might notice your site has become slower. I specifically built this plugin to be fast: most of the...
  • Disabling ssl for one page only

    The problem: services that don’t support SSL I think the best way to go is to get your entire site on SSL. But sometimes there are services that are not...
  • Images not found with Photon from Jetpack

    Some websites using JetPack have Photon activated. Photon is an image acceleration and editing service, where the images are served from the WordPress cloud. In some cases, there are issues...

Leave a Comment