Site icon Hip-Hop Website Design and Development

How to update mark-up of a gallery block in a custom theme?

I’m developing a custom WordPress theme and it’s my first time working with WordPress in a little while. I can see the post and page editor has been completely overhauled, and posts and pages can be built using “blocks”.

Previously, when creating custom themes I’d create a post.php template file and display the post content using <?php the_content(); ?>. This still works, but I’d like to change how a gallery block is rendered (I’d like to render images in a Bootstrap carousel rather than an image grid).

I looked at the template hierarchy page of the WordPress developer documentation, but couldn’t see anything relating to blocks on there.

So how do I go about updating the mark-up for the various blocks WordPress supports? If someone could point me to the relevant documentation, that would be a huge help!