Viewing 2 replies - 1 through 2 (of 2 total)
  • I’ve had these problems too.

    I fixed it by adding this to my code:

    function fix_columns( $content ) {
        $content = preg_replace( '/(<p>)?((<\/div>)?<div class="column c\d">)<\/p>/', '\2', $content );
    }
    add_filter( 'the_content', 'fix_columns' );

    Perhaps this can be added to the plugin?

    Sorry, bad code. Update:

    function fix_columns( $content ) {
        $content = preg_replace( '/(<p>)?((<\/div>)?<div class="column c\d">)<\/p>/', '\2', $content );
        return $content;
    }
    add_filter( 'the_content', 'fix_columns' );
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘header in column causes space’ is closed to new replies.