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.