Skip to content

problem to access images in wordpress  #259

@Flaschenzug

Description

@Flaschenzug

I added baguetteBox to Wordpress and for galleries it works perfectly well.
But for normal images it is not working.

Normal images are displayed like this:
<figure class="wp-block-image"><a ...><img ...></a></figure>

Galleries like this:
<figure class="wp-block-gallery"><figure class="wp-block-image"><a ...><img ...></a></figure></figure>

If I try to add both classes to the .run , I get an error.
... baguetteBox.run('.wp-block-gallery, .wp-block-image',{ ...

Any ideas how I can get to the point, where I can open single images AND galleries?

Thanks a lot! :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions