admin管理员组文章数量:1206263
I need to remove the "wpautop filter" from my WordPress Website because it is adding too many paragraphs. I'm new to WordPress. I don't know how to create Child themes. The name of my theme is the "supreme directory". is it also possible to remove the "wpautop filter" from the supreme directory theme directly?
I need to remove the "wpautop filter" from my WordPress Website because it is adding too many paragraphs. I'm new to WordPress. I don't know how to create Child themes. The name of my theme is the "supreme directory". is it also possible to remove the "wpautop filter" from the supreme directory theme directly?
Share Improve this question edited Jun 2, 2019 at 19:40 Tope Leye asked Jun 2, 2019 at 15:53 Tope LeyeTope Leye 112 bronze badges 1- 1 Possible duplicate of Remove Line Breaks From Cell Content in WordPress – Jacob Peattie Commented Jun 3, 2019 at 2:39
1 Answer
Reset to default 2In your child theme's functions.php
, try something like this:
remove_filter( 'the_content', 'wp_autop' );
Note that this may have unintended side-effects, and will definitely have an effect on how your content renders.
本文标签: wp autopHow to disable autop in WordPress
版权声明:本文标题:wp autop - How to disable auto-p in WordPress? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738705694a2107897.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论