hard to disable autop filter
-
Hallo.
I tried many solutions but can’t disable wp auto formatting.
My WP: WordPress ver. 5.1.1, Twentyseventeen theme + Adbanced Twentyseventeen Child
Tried with following plugins:
– ignore-code.1.0: even if wrapping in [ignore-code], autoformatting is enabled
– disable-wp-auto-formatting: does not work, no panel to activate in pages
– toggle-wpautop.1.2.5: does not work, no panel to activate in pages
– dont-muck-my-markup: this is the only one that appears in page panels, but without effectTried with lines in wp-content/themes/twentyseventeen/functions.php:
remove_filter( ‘the_content’, ‘wpautop’ );
remove_filter( ‘the_excerpt’, ‘wpautop’ );But without effect: wpautop still working.
I see that the filter is in wp-includes/formatting.php
and its javascript file is in wp-includes/js/autop.js, but of course cannot disable there, because
the whole structure of WordPress shouldn’t work in that case.Also add that with ver. 1.4 of Twentyseventeen the problem was solved with simple plugin
“don’t muck my markup”, I have another site with old version and autop is disabled.
With latest (2.1) it seems impossible to disable autop.Another info is that in this case I have a multilanguage site:
I read a post in which s/one told that with “WPGlobus” multilang plugin it was impossible
to disable autop in functions.php, and had to change some lines in plugin .php.
My case is different (I use Polylang) but it might be a similar problem … what do you say?Or I can try to make a must use plugin to disable autop:
I have already made a MU-plugin for Polylang, to solve a problem to solve a compatibility
issue with WP-Sweep (wp_sweep_excluded_taxonomies …).Or … I really don’t know … backwarding to previous versions? Crazy!
Thanks to all.
Mauro
- The topic ‘hard to disable autop filter’ is closed to new replies.