Support » Plugin: Stop SOPA Ribbon » [Plugin: Stop SOPA Ribbon] jQuery lazy load plugin Compatibility?

  • Resolved raven12


    Hey guys,

    I would really love to include this ribbon to my site to support this noble cause, but my jQuery lazy load plugin won’t load the ribbon, unless you go to the End of the page first.

    Is there a way I can fix this without disabling the jQuery lazy load plugin?

    Again, I would really like to participate and include it to my site.

    Thanks a lot in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Konstantin Kovshenin


    Raven, problem is that the image is printed in the bottom of the page during wp_footer, and then placed to the top right with CSS. If you don’t want to disable the lazy load plugin you can try and alter the theme files.

    Open the plugin file and comment out the last line that says add_action. Then, open your theme’s header.php file and find the opening body tag. Immediately after that type in something like this:

    <?php render_stop_sopa_ribbon(); ?>

    Note that it may break your theme if you deactivate the plugin, so once the SOPA days are gone, don’t forget to delete that hack from your theme as well.



    @konstantin Thanks a lot. It worked like a charm. I really hope to be able to help in stopping SOPA.

    Plugin Author Konstantin Kovshenin


    You’re welcome, tagging this as resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Stop SOPA Ribbon] jQuery lazy load plugin Compatibility?’ is closed to new replies.