New version has messed things up for me
-
Hi there. I’m really enjoying using lazy blocks on a site I’m developing, but the latest update seems to have brought some unexpected effects. I was relying on being able to customise the HTML of each block output, using classes and data-attributes, etc.
The update seems to include ‘added new attribute blockUniqueClass that will adds automatically on each Lazy block’ and ‘changed output for lazy blocks – always added wrapper with block class’, however this seems to happen as a new div that gets wrapped around whatever custom HTML is being used. For me this has totally broken my page layout. Was this intentional? Could it not be applied to the outermost element in the template, or something? Being able to have FULL control over the HTML is what made this plugin great, but if things change so quickly it will be unsuitable for production use.
Any info around the change would be well received. Sorry to sound negative, I otherwise really love the plugin.
Thanks
BTW for anyone who needs a quick and dirty solution, in jQuery:
$("div[class^='wp-block-lazyblock-'],div[class*=' wp-block-lazyblock-']").contents().unwrap();
- The topic ‘New version has messed things up for me’ is closed to new replies.