Support

Account

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

  • we just upgraded our website with latest ACF plugin update Version 5.3.6.1.
    Our WP 4.4.2

    Our font-size just changed on few pages due to ACF adding <p></p>
    we have below code in the functions.php so not sure why is not working now after update.

    if( function_exists('acf_add_options_page') )
    {
    	acf_add_options_page();
    	acf_add_options_sub_page(' Header ');
    	acf_add_options_sub_page(' Footer ');
    	acf_add_options_sub_page(' Shortcodes ');
    	acf_add_options_sub_page(' Contact-PageContent ');
    	
    	// remove <p></p> from acf editor
    	remove_filter ('acf_the_content', 'wpautop');
    }