Change wp-block-gallery output based on class
-
At the moment, when you add an image gallery with WordPress, it’s output looks something like this:
<figure class="wp-block-gallery has-nested-images columns-3 is-cropped"> <figure class="wp-block-image size-thumbnail"> <a href="IMAGE" etc etc></a> </figure> </figure>
What I would like to achieve is that when I add an image gallery and give it the class of “flexslider”, both through WordPress, that the output will be like this instead:
<div class="flexslider"> <ul class="slides"> <li> <figure class="wp-block-image size-thumbnail"> <a href="IMAGE" etc etc></a> </figure> </li> </ul> </div>
At least, I would like to know what file I need to look into to change this output. So far, I am not sure where to find this.
Alright, I hope someone is capable of helping me here.
Thank you and take care ??
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Change wp-block-gallery output based on class’ is closed to new replies.