Title: threepears's Replies | WordPress.org

---

# threepears

  [  ](https://wordpress.org/support/users/threepears/)

 *   [Profile](https://wordpress.org/support/users/threepears/)
 *   [Topics Started](https://wordpress.org/support/users/threepears/topics/)
 *   [Replies Created](https://wordpress.org/support/users/threepears/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/threepears/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/threepears/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/threepears/engagements/)
 *   [Favorites](https://wordpress.org/support/users/threepears/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Black Studio TinyMCE Widget] Remove p tag on images](https://wordpress.org/support/topic/remove-p-tag-on-images/)
 *  Thread Starter [threepears](https://wordpress.org/support/users/threepears/)
 * (@threepears)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/remove-p-tag-on-images/#post-5238534)
 * One more note, Marco. When I attempt to make an edit in “Visual” mode and then
   hit “Save”, like a client would, it kicks me immediately over to “Text” mode (
   or HTML editing) with no changes saved and <p> tags added back to where I removed
   them from. This seems to happen with or without the function you listed above
   in my functions.php file, and happens without the “Automatically add paragraphs”
   button checked.
 * Like I said, I wouldn’t care if it was just me, as I prefer editing in “Text”
   mode, but I’m trying to make this easy for the client. Any ideas about what’s
   happening here? Thank you very much!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Black Studio TinyMCE Widget] Remove p tag on images](https://wordpress.org/support/topic/remove-p-tag-on-images/)
 *  Thread Starter [threepears](https://wordpress.org/support/users/threepears/)
 * (@threepears)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/remove-p-tag-on-images/#post-5238533)
 * Hello Marco…..thank you for all your replies! I’m sorry I’m just now getting 
   back to working on this issue. The new plugin seems to work fine, and there’s
   even an “Automatically add paragraphs” button (which I assume adds `<p>` tags).
   I used the last code snippet you gave above in my functions.php file, and it 
   does strip out the `<p>` tags….but it strips out ALL of them, it seems. My original
   problem was that I wanted `<p>` tags for paragraphs, but NOT for images. Is there
   a way to accomplish this? I can do what I need to make edits to the site, but
   I’m trying to make this easier for the client so I can set some CSS rules that
   will always work for them…..and to do that, I need the images to have no `<p>`
   tags. Can you help? Many thanks!!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Black Studio TinyMCE Widget] Remove p tag on images](https://wordpress.org/support/topic/remove-p-tag-on-images/)
 *  Thread Starter [threepears](https://wordpress.org/support/users/threepears/)
 * (@threepears)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/remove-p-tag-on-images/#post-5238479)
 * Thank you, Marco! I tried to use this code, but it doesn’t seem to work. I’m 
   wondering … if the `wpautotop` is not natively applied to widgets and BST widgets
   already have the `<p>` inside, wouldn’t I want to find a way to remove the `<
   p>` from BST (TinyMCE) itself? I guess I’m just a little confused as to what 
   we’re aiming to do, and it seems to me we could leave `wpautotop` alone if it
   doesn’t even touch the widgets. Am I thinking of this wrong? Thank you for all
   your help!

Viewing 3 replies - 1 through 3 (of 3 total)