WordPress.org

Ready to get started?Download WordPress

Forums

BJ Lazy Load
[resolved] How to load scripts on custom non-header page? (2 posts)

  1. oomskaap
    Member
    Posted 10 months ago #

    We have a custom wordpress page that does not load the regular wordpress header.
    What do I have to paste in this custom page's header to make sure lazy load works?

    I tried:

    <script type='text/javascript' src='http://www.domain.com/wp-content/plugins/bj-lazy-load/js/combined.min.js?ver=0.6.10'></script>

    But it does not work to echo an image:

    <?php the_post_thumbnail(); ?>

    Please help.

    Thanks.

    http://wordpress.org/plugins/bj-lazy-load/

  2. oomskaap
    Member
    Posted 10 months ago #

    Nevermind. It works when i put this

    <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js?ver=1.8.1'></script>
    <script type='text/javascript' src='http://www.MYDOMAIN.com/wp-content/plugins/bj-lazy-load/js/combined.min.js?ver=0.6.10'></script>

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.