The wordpress editor is automatically adding P tags into my HTML posts, and I would like to disable it in order to have a better control over the HTML generated.
Sorry, I don't know why, but it does not seem to have any effect. I installed the Code Snippets plugin, I created the snipped with your suggested content (see attached screenshot) and it is currently active. But if I go to a post, go to HTML editor and copy some text, as soon as I press "Exit code editor", my text is automatically surrounded by P tags. I understood that this is exactly what this snippet should prevent, right?
The wordpress editor is automatically adding P tags into my HTML posts, and I would like to disable it in order to have a better control over the HTML generated.
Could you please tell me how to disable this?
Thanks
Hi,
Please install the CodeSnippet plugin, then create a new snippet with the following content:
Regards,
PenciDesign.
Sorry, I don't know why, but it does not seem to have any effect. I installed the Code Snippets plugin, I created the snipped with your suggested content (see attached screenshot) and it is currently active. But if I go to a post, go to HTML editor and copy some text, as soon as I press "Exit code editor", my text is automatically surrounded by P tags. I understood that this is exactly what this snippet should prevent, right?
Any idea of what I have done wrong?
Thanks
Hi,
Can you send me your site login information in a private reply? I need to log in and check your post setting.
Regards,
PenciDesign.
Hi,
Please try to replace it with this code:
Regards,
PenciDesign.
Hi,
In this case, the p tag was inserted from the post editor, so please try to edit your post on the Classic Editor: https://wordpress.org/plugins/classic-editor/
Regards,
PenciDesign.