mwl-img getting removed by JS; doesn’t seem to fire correctly, add_mwl, etc
-
I’m currently tinkering with a custom theme based on Bootstrap Basic that’s not playing nice with Meow Lightbox at present – both for general posts and for more complicated pages with images shown in tables generated by their own post loop query. (I’d share it, but it’s on an XAMPP test server at present)
Put simply, the Debug Log shows that Lightbox detected images and fired, but in the inspector, I can see the “mwl-img” class tags (the ones I added to photos in-line in the editor) getting almost immediately wiped on load, inexplicably.
This isn’t the first time I’ve struggled with it, as I realized that, in an earlier variant of this theme (which I like to use as a base for all my projects) I’ve apparently added the class “add-mwl” in the theme files:
<div class="entry-content">
<div class="add-mwl">
<div class="row">
<div class="col m-3">
<h1 class="entry-title"><?php the_title(); ?></h1>
<hr>
<?php the_content(); ?>
</div>
</div>
</div>
</div>Upon looking at it now, I’m 100% sure this is a kludge making up for an error with Meow Lightbox’s normal JS-injection and I just haven’t nailed the actual issue yet – obviously I haven’t forgotten to enqueue the footer correctly, but something else isn’t working right.
To my surprise however, upon turning off all plugins (short of Meow Lightbox) and runing Twenty Twenty Four as a test…I’m getting the mwl-img class stripped again.
I’m stumped. Any suggestions?
- You must be logged in to reply to this topic.