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

  • Known plugin compatibility issues

    In some cases there are compatibility issues with other plugins. Most of the time this is caused by another plugin blocking the mixed content fixer. The following plugins appear to...
  • How to replace other domains that should be on ssl

    If you include external domains, that are not replaced to https by Really Simple SSL, you can fix this with a filter. Really Simple SSL replaces all references the your...
  • Locating mixed content in widgets

    Sometimes the scan finds mixed content in widgets. If you see this message it’s likely there’s a link to an image in one of your widgets which isn’t available over...
  • Mixed content when using Divi theme

    Once in a while we come across users who experience mixed content issues when using Divi theme and Divi builder. Divi uses its own built-in caching mechanism. To fix the...

2 Comments

  • Mark Kaplan

    I have simple SSL and green lock in URL bar but am still confused as to whether everything is right.

    Your plug in says Mixed not recognizing landing page.

    I didn’t see RSS in source code

    Google webmaster recognizes new ssl designation

    • Rogier Lankhorst

      If you have the green lock, than you need not worry, because the mixed content fixer is there to make sure you have the green lock.

Leave a Comment