When I use the “Text Block” and insert a DIV into HTML with no text ( <div class=”button”></div>) and then save it, it deletes the div for not having text inside of the brackets. If I were it like this : <div class=”button”>some text</div> it won’t delete.
How can I fix this?
Hi ace2296,
I’m fairly sure this is just how WordPress handles code. You can add a and see if that helps but typically, you need to force wordpress to stay in text edit mode instead of the visual editor to prevent it from modifying any of your html.
Regards,
Devin