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

enter image description here

Then, if I switch to visual editor and come back to the text, it becomes like this

enter image description here

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.

Matteo Farinella 2 years 2020-12-15T05:10:21-05:00 0 Answers 6 views 0

Leave an answer