Home Forums WoodMart support forum About HTML Block

About HTML Block

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #671618

    visanchan
    Participant

    Hi,

    I’m using the WoodMart theme and I have a problem with the Swiper carousel and Lightbox.

    I’m trying to insert an HTML block with an image carousel and lightbox inside a brand or product category description.
    However, when the page loads, the Swiper slider or Lightbox doesn’t initialize properly — it either breaks or won’t open images.

    I already tried adding woodmartThemeModule.swiper() and woodmartThemeModule.lightbox() using wp_footer with DOMContentLoaded or window.load, but the issue persists.

    Can you please confirm:

    Is it supported to insert Swiper or Lightbox elements inside brand or category descriptions like this?

    If not, what is the correct hook or recommended way to load dynamic elements in archive/brand pages when using HTML blocks?

    Do you have an official snippet or method for this use case?

    Thanks for your help.
    Looking forward to your guidance so I can fix this properly.

    #671779

    Luke Nielsen
    Keymaster

    Hello,

    Connect these files — https://monosnap.com/file/RRzedVE1eumjJo3qjdfP6dUfvIIrQq — as well as the Swiper library and the PhotoSwipe library, select ‘Always load’, and check again.

    Kind Regards

Viewing 2 posts - 1 through 2 (of 2 total)