Support » Plugin: Disable Gutenberg » Does the job, but does not remove unwanted p tags

  • o2xav

    (@o2xav)


    Something that came with gutenberg, is that the output is littered with p tags.
    P tags around images, replacing double line breaks, p tags everywhere.

    This plugin disables gutenberg but does not fix the output, like it was before guten-f*in-berg.

    • This topic was modified 4 years ago by o2xav.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Thanks for the feedback, o2xav. Disable Gutenberg does not change/add any tags (p or otherwise). That all happens because of Gutenberg Block Editor, which this plugins aims to disable and replace with the Classic Editor. Currently the plugin does not claim to “remove unwanted p tags”, but I think it’s a good idea and may add something in a future update.

    In the meantime, for the sake of anyone else reading, it’s recommended to disable Gutenberg before opening or adding any posts. That way, you stop WordPress/Gutenberg from adding a bunch of tags and other markup to the post content (as lamented in the above review).

    Thread Starter o2xav

    (@o2xav)

    You know what, it was unfair for me to put three stars, because it’s not the plugin’s fault, i just did not think it through, did not want to hurt anyone.

    But you can try on your side, even with gutenberg disabled (with the help of your plugin or another):
    -create a post,
    -insert an image on the first line,
    -create a new paragraph underneath
    -publish
    Now check the page’s source, the image is surrounded in P tags. Whether you have wpautop disabled or not. Same for double line breaks. And this happened when WP5.0 came out.

    One of the reasons i’m starting to consider moving to ClassicPress

    • This reply was modified 4 years ago by o2xav.
    Plugin Author Jeff Starr

    (@specialk)

    Thanks for the updated review and feedback, o2xav. I will take a closer look at this for the next plugin update. From your steps it sounds like there may some other factor involved, as DG does not in any way mess with auto-formatting/autop stuff. One way to check, do you know if the same behavior happens when DG plugin is disabled?

    Thread Starter o2xav

    (@o2xav)

    Yes, i can confirm it has nothing to do with DG, it has to do with WP 5.0+, and the arrival of gutenberg.

    Before 5.0 you could disable autop, now you can’t.

    And i was hoping to find a module that disables gutenberg, and removes these pesky p tags, or make “disable autop” work as it did before gutenberg.

    For now, i did not find a premade solution, i’ll try to look into it myself next week, if i find something, i’ll share with you, maybe you can make it an option.

    Plugin Author Jeff Starr

    (@specialk)

    Definitely, if you find any further infos that could help improve DG, please let me know. Certainly it should be possible to disable auto formatting/autop when using the Classic Editor, have not heard anything about core changes in this regard. Either way thanks again, I appreciate your information o2xav.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Does the job, but does not remove unwanted p tags’ is closed to new replies.