Support

Account

Home Forums General Issues Removing Paragraph Tags from WYSIWYG Fields? Reply To: Removing Paragraph Tags from WYSIWYG Fields?

  • None of this worked for me…
    I tried this:

    add_filter('tiny_mce_before_init', function($init) {
        $init['wpautop'] = false;
        $init['forced_root_blocks'] = false;
        $init['force_p_newlines'] = false;
        $init['force_br_newlines'] = true;
        return $init;
    });

    and

    add_action('acf/init', function() {
        
        remove_filter('acf_the_content', 'wpautop' );
        remove_filter('the_content', 'wpautop' );
    });

    none of this works.
    Sugestions?