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

  • Hyperlinks to external urls getting replaced to https

    There are two situations where a normal hyperlink to an external url could get replaced to https Website domain is part of the external domain When the external url is for example http://domain.com.au...
  • How to exclude a url from the mixed content fixer

    It sometimes is necessary to exclude a certain url from the mixed content fixer. For those who don’t know already: the mixed content fixer in Really Simple SSL changes all...
  • My browser still gives mixed content warnings

    If you still get mixed content warnings, you have to track down the cause. If the mixed content fixer is working, the Really Simple SSL fixes all images, javascript, style...
  • Parts of my site not loading

    Did you install Really Simple SSL on your site, and now some images, stylesheets, or external servcies are not loading? When a site is requested over the SSL protocol, the...

Leave a Comment