Angrycreative / bj-lazy-load

WordPress plugin for lazy loading
GNU General Public License v2.0
40 stars 25 forks source link

Adding filter for custom themed site #42

Closed Light1c3 closed 6 years ago

Light1c3 commented 6 years ago

Sorry for the easy question, but how would I add the PHP code so that this works with a custom theme?

bjornjohansen commented 6 years ago

For images in the content, you don’t have to do anything.

For images not in the content field, you have to filter the HTML for the image through bj_lazy_load_html.

Light1c3 commented 6 years ago

Thank you for getting back to me so quickly! The website uses SiteOrigin for the template, and after testing the lazy loading doesn't work out of the box. I'm not sure what I should be doing to filter the HTML through bj_lazy_load_html

Light1c3 commented 6 years ago

This is the site in question: https://palermophoto.com/