Title: WordPress randomly removing specific code from content
Last modified: January 8, 2019

---

# WordPress randomly removing specific code from content

 *  Resolved [robertayala](https://wordpress.org/support/users/robertayala/)
 * (@robertayala)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/wordpress-randomly-removing-specific-code-from-content/)
 * I have not found a solution specific to the code I’m using… Here’s what’s happening.
 * I edit my product in the text editor, and when I add a button for the product
   I add this code:
 * <form class=”signup” enctype=”multipart/form-data” method=”post”><button class
   =”single_add_to_cart_button button alt” name=”add-to-cart” type=”submit” value
   =”56″>Sign Up</button></form>
 * It works fine for a day or two but then I get clients complaining they can’t 
   click the button, so I go back to check the editor and I find this code:
 * <button class=”single_add_to_cart_button button alt” name=”add-to-cart” type=”
   submit” value=”56″>Sign Up</button>
 * It seems to randomly remove the <form> code. I’m not sure what’s happening. The
   solutions that I have found are not specifically for <form> code.
 * Any idea, or suggestions, or solutions? It would be greatly appreciated!
 * Thank you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwordpress-randomly-removing-specific-code-from-content%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [robertayala](https://wordpress.org/support/users/robertayala/)
 * (@robertayala)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/wordpress-randomly-removing-specific-code-from-content/#post-11108885)
 * There doesn’t seem to be a fix, so I ended up changing my add to cart button 
   from a “form/button” code to the “shortcode” for add to cart.

Viewing 1 replies (of 1 total)

The topic ‘WordPress randomly removing specific code from content’ is closed to 
new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/storefront/4.6.2/screenshot.png)
 * Storefront
 * [Support Threads](https://wordpress.org/support/theme/storefront/)
 * [Active Topics](https://wordpress.org/support/theme/storefront/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/storefront/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/storefront/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [editor](https://wordpress.org/support/topic-tag/editor/)
 * [form code](https://wordpress.org/support/topic-tag/form-code/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [text editor](https://wordpress.org/support/topic-tag/text-editor/)

 * 1 reply
 * 1 participant
 * Last reply from: [robertayala](https://wordpress.org/support/users/robertayala/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/wordpress-randomly-removing-specific-code-from-content/#post-11108885)
 * Status: resolved