Title: Before / After Block filter
Last modified: February 6, 2018

---

# Before / After Block filter

 *  Resolved [Goran Petrovic](https://wordpress.org/support/users/goran321/)
 * (@goran321)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/before-after-block-filter/)
 * Hi,
 * I wish to add custom HTML before and after block.
    I want to create different
   container background, wrap base on boostrap for each block.
 * Something like this
 * <div class=”container-fluid bg-dark”>
    [block-1-html] </div> <div class=”container
   bg-success”> [block-2-html] </div> etc…
 * Do you have filter function which will be add html before and after each block
   base on block settings?
 * Thanks

The topic ‘Before / After Block filter’ is closed to new replies.

 * ![](https://ps.w.org/gutenberg/assets/icon-256x256.jpg?rev=1776042)
 * [Gutenberg](https://wordpress.org/plugins/gutenberg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gutenberg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gutenberg/)
 * [Active Topics](https://wordpress.org/support/plugin/gutenberg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gutenberg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gutenberg/reviews/)

## Tags

 * [block](https://wordpress.org/support/topic-tag/block/)

 * 0 replies
 * 1 participant
 * Last reply from: [Goran Petrovic](https://wordpress.org/support/users/goran321/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/before-after-block-filter/)
 * Status: resolved