Title: Broken html structure for column shortcode
Last modified: September 1, 2016

---

# Broken html structure for column shortcode

 *  [GalinaBublik](https://wordpress.org/support/users/galinabublik/)
 * (@galinabublik)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/broken-html-structure-for-column-shortcode/)
 * Use adding columns shortcodes to content.
    Shortcode gererated with ‘br’. After
   WordPress filters ‘the_content’ we have next structure [https://gyazo.com/21cd8bcf3f3b13ab9653e671565db6c7](https://gyazo.com/21cd8bcf3f3b13ab9653e671565db6c7)
 * I fixed this for my site by
    add_filter(‘the_content’, ‘remove_p_form_shortcode’);
   function remove_p_form_shortcode($content){ $content = preg_replace(‘/<p><\/div
   >/iu’, “</div>”, $content); $content = preg_replace(‘/<div(.*?)><\/p>/iu’, “<
   div$1>”, $content); return $content;
 *  }
 * [https://wordpress.org/plugins/easy-bootstrap-shortcode](https://wordpress.org/plugins/easy-bootstrap-shortcode)
 * Please fix plugin for next time.

The topic ‘Broken html structure for column shortcode’ is closed to new replies.

## Tags

 * [broken html](https://wordpress.org/support/topic-tag/broken-html/)
 * [column shortcode](https://wordpress.org/support/topic-tag/column-shortcode/)

 * 0 replies
 * 1 participant
 * Last reply from: [GalinaBublik](https://wordpress.org/support/users/galinabublik/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/broken-html-structure-for-column-shortcode/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
