Do you want to remove P tag from around Images in the_content function, so the space of below and above image (Occupied by P Tag) would be removed?
Then you land at the right place.
We have written a simple function code that will help you to easily remove P tag from around images.
So let’s begin.
Remove Paragraph tags from Around Images
Just copy the below-embedded code snippets and paste it into your functions.php file.
Code for Remove P Tags Around Images
Save the file and see the result in your browser.
Hope you found this guide helpful and easy.
Don’t forget to leave a comment below of your opinion or questions.
Also, Do share this Remove Paragraph tags from Around Images in the_content(); guide.