WordPress.org

Forums

Advanced lazy load
breaks other plugin (3 posts)

  1. karenratte
    Member
    Posted 1 year ago #

    I really like the plugin, works great except that it breaks a ToolTip that I use in The Events Calendar, another plugin. It looks like this site is not moderated or questions answered but I will try here and on the plugin site. thanks

    http://wordpress.org/extend/plugins/advanced-lazy-load/

  2. Boris Kuzmanovic
    Member
    Posted 1 year ago #

    This is kind of a late reply, but it might help others.

    In my case it was breaking the layout of the title which contained the string "src". The problem is with the regex that easily matches codes outside of the tag. I fixed it by modifying the line 154 of advanced_lazyload.php:

    From:

    $pattern         = '/((?:\<img).*)(src)/';

    To:

    $pattern         = '/((?:\<img)[^>]*)(src)/';

    This regex matches all characters other than '>', which is a closing bracket in HTML. Author's regex would match past the closing bracket.

    Hope it works for you.

  3. pukos
    Member
    Posted 1 year ago #

    Peraphs you could help me with another pattern. I'm tryng to exclude the images who has the class "nounveil".

    Any cloue?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced lazy load
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.