WordPress.org

Support

Support » Plugins and Hacks » [Resolved] How to load scripts on custom non-header page?

[Resolved] How to load scripts on custom non-header page?

  • 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/

Viewing 1 replies (of 1 total)
  • 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>

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] How to load scripts on custom non-header page?’ is closed to new replies.