Add a custom global container to the template.
-
I’m making a WordPress theme, and by default, WordPress pages use a container<div class="wp-site-blocks">
to wrap all block content. However, I want to add a custom container<div class="wrapper">
before all block content. I found a functionget_the_block_template_html()
inwp-includes
and would like to know how to modify it so that my container wraps the content as<div class="wp-site-blocks"><div class="wrapper">...blocks</div></div>
.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Add a custom global container to the template.’ is closed to new replies.