Why do I keep losing links when I switch to visual editor in WordPress
I have this problem in a specific page of my wordpress website: when I switch from text editor to visual editor I immediately lose all my links (placed in a div element).
I give you a detailed example of what happen every time:
I start editing my page and the section with href looks like this
Then, if I switch to visual editor and come back to the text, it becomes like this
As you can see the "a" element has disappeared and it’s very annoying because I have to replace all my links every time or switch to a previous edit and losing my recent ones.
How can i solve this? I would like to be able to switch freely between editing modes without losing any code.
Thanks a lot.