WP Smith

Creating WordPress & Genesis Websites Since 2010

  • Home
  • About
  • Services
  • Blog
  • Contact

Oct 05 2012

Enable Lazy Load on Genesis

If you would like to enable Lazy Load on Genesis, you may notice that the feature images do not lazy load. Because of the simplicity of Lazy Load, it is quite easy to add this functionality.

Add the following to your functions.php file. And BOOM! you're done!

The later function, wps_lazyload_placeholder_image, will enable you to setup a default image instead of the Lazy Load's default placeholder image, which is 1x1.trans.gif. However, if you are good with the 1x1 gif, then you don't need the second function.

Written by Travis Smith · Categorized: Genesis

StudioPress Premium WordPress Themes     WP Engine Managed WordPress Hosting

What can I do for you!?

Custom Development

We develop plugins by determining both business/functional and technical requirements, following WordPress development best practices, and using agile methodology to ensure you get the best solution.

Consulting

Have questions? Need a reliable developer to consult? Please contact us today!

Customized Theme

We can customize your theme or child theme, or create a child theme for you based on your needs while enhancing the performance of every individual attribute.

Customized Plugin

We can customize your plugins, extend plugins (e.g., Gravity Forms, Jetpack, Soliloquy) based on your needs ensuring security, performance, and positive business impact.

Contact Us

About Travis Smith

As a WordPress enthusiast, developer, and speaker, Travis writes about what he learns in WordPress trying to help other WordPress travelers, beginners and enthusiasts with tutorials, explanations, & demonstrations.

Comments

  1. Grumpyfoot says

    October 28, 2012 at 4:16 am

    Hi Travis Smith,

    You’re a lifesaver. I think it worked my site. I tried refreshing a couple of times to make sure. I just need to add a lot more content to be certain. But thank you thank you thank you.

    note to readers: Doesn’t work with BJ Lazy Load.

    Reply
  2. King says

    March 15, 2013 at 4:01 am

    How do I manually add the lazyload functionality to genesis without making use of the plugin..? is there any way I could add the same through code?

    Reply
  3. Oscar @ Blogging Tips says

    June 23, 2013 at 2:33 pm

    Thanks for this article Smith.
    The code displays well when I try to view my Source, but it just doesn’t load the images, only the default LAzy Load image displays. What might be the cause?
    Thanks and anticipating your reply.

    Reply
    • Oscar @ Blogging Tips says

      June 23, 2013 at 2:36 pm

      I had to reload my page twice with a hard Ctrl + R reload and it’s working perfectly. Thanks for the saver article Smith ;).

      Reply
  4. Michelle says

    December 18, 2013 at 9:17 am

    Hi Travis,

    return ‘http://url/to/image’; <– need to change to real featured image ?

    Thanks

    Reply
  5. Matt Morisette says

    June 15, 2016 at 2:40 pm

    Can you put the code back up?

    Thanks
    Matt

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Twitter
  • Facebook
  • LinkedIn
  • Google+
  • RSS

Copyright © 2025 � WP Smith on Genesis on Genesis Framework � WordPress � Log in