如何删除多余的< p>在WordPress? [英] How to remove extra <p> in WordPress?

查看:102
本文介绍了如何删除多余的< p>在WordPress?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是wordpress新手,目前正在开发一个主题。我注意到Wordpress在页面上添加了< p> 标签。你知道任何插件或解决方法来避免这种情况吗?

I'm new to wordpress and currently developing a theme on it. I have noticed that Wordpress adds <p> tags all over the page. Do you know any plugin or a workaround to avoid this?

推荐答案

添加到 functions.php ,这应该给你找到的结果:

Add this to your functions.php, this should give the result you're looking for:

remove_filter('the_content', 'wpautop');

这篇关于如何删除多余的&lt; p&gt;在WordPress?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆