# Formatting problem - paragraph automatically added

**URL:** <https://pressbooks.community/t/formatting-problem-paragraph-automatically-added/1548>\
**Category:** Developer Questions\
**Created:** [December 15, 2020, 10:06pm UTC](https://pressbooks.community/t/formatting-problem-paragraph-automatically-added/1548 "2020-12-15T22:06:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![atlet](https://pressbooks.community/user_avatar/pressbooks.community/atlet/32/1089_2.png) [@atlet](https://pressbooks.community/u/atlet)\
**Post date:** [December 15, 2020, 10:06pm UTC](https://pressbooks.community/t/formatting-problem-paragraph-automatically-added/1548/1 "2020-12-15T22:06:24Z")

</div>

Hi,

it’s possible to remove automatic formatting of content. I have troubles, as it adds p tag automatically to my content.

I also removed filter, but with no luck.  
remove\_filter( ‘the\_content’, ‘wpautop’ );

Thanks,  
Andraž

---

<div class="post-metadata">

**Author:** ![SteelWagstaff](https://pressbooks.community/user_avatar/pressbooks.community/steelwagstaff/32/1280_2.png) [@SteelWagstaff](https://pressbooks.community/u/SteelWagstaff)\
**Post date:** [December 15, 2020, 10:13pm UTC](https://pressbooks.community/t/formatting-problem-paragraph-automatically-added/1548/2 "2020-12-15T22:13:27Z")

</div>

Hi @atlet, I’ve never tried removing WordPress’ autop from Pressbooks (which creates custom post types for parts, chapters, & front/back matter, but perhaps the approach described here will be helpful? [https://stackoverflow.com/a/7698173](https://stackoverflow.com/a/7698173)

---

<div class="post-metadata">

**Author:** ![atlet](https://pressbooks.community/user_avatar/pressbooks.community/atlet/32/1089_2.png) [@atlet](https://pressbooks.community/u/atlet)\
**Post date:** [December 15, 2020, 10:54pm UTC](https://pressbooks.community/t/formatting-problem-paragraph-automatically-added/1548/3 "2020-12-15T22:54:06Z")

</div>

Hi @SteelWagstaff thanks for fast reply. Solution was to comment out line 197 in file pressbooks/hooks.php.

---

<div class="post-metadata">

**Author:** ![weevie833](https://pressbooks.community/user_avatar/pressbooks.community/weevie833/32/745_2.png) [@weevie833](https://pressbooks.community/u/weevie833)\
**Post date:** [December 16, 2020, 8:01pm UTC](https://pressbooks.community/t/formatting-problem-paragraph-automatically-added/1548/4 "2020-12-16T20:01:02Z")

</div>

I recall years ago there was a WP plugin to override WordPress autop. Is that something that can be blessed for systemwide use? If I had the same problem as the OP, I would not have access to editing the PHP in the templates.

---

<div class="post-metadata">

**Author:** ![atlet](https://pressbooks.community/user_avatar/pressbooks.community/atlet/32/1089_2.png) [@atlet](https://pressbooks.community/u/atlet)\
**Post date:** [December 16, 2020, 8:12pm UTC](https://pressbooks.community/t/formatting-problem-paragraph-automatically-added/1548/5 "2020-12-16T20:12:47Z")

</div>

No plugin will work, as is hardcoded in PressBook plugin. ☹
