WordPress.org

Ready to get started?Download WordPress

Forums

Stop SOPA Ribbon
[resolved] jQuery lazy load plugin Compatibility? (4 posts)

  1. raven12
    Member
    Posted 2 years ago #

    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!

    http://wordpress.org/extend/plugins/stop-sopa-ribbon/

  2. Konstantin Kovshenin
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  3. raven12
    Member
    Posted 2 years ago #

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

  4. Konstantin Kovshenin
    Member
    Plugin Author

    Posted 2 years ago #

    You're welcome, tagging this as resolved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic