krugazul
Member
Posted 3 years ago #
When i add an img or a link wordpress removes some of my tags.
When i add target="_blank" to my page it automatically removes it. And also it changes the /> in an image to >
I have tried disabling the visual editor and adding the code.
And unfortunately I cannot use tinyMCE.
Does anyone know of a plugin that can disable this code editing or how to stop it.
http://oceanking.co.za/environment/
http://oceanking.co.za/links/
Did you uncheck "WordPress should correct invalidly nested XHTML automatically" under "Settings" - "Writing"?
big9erfan
Member
Posted 3 years ago #
I have that unchecked and I have a similar problem as the OP.
krugazul
Member
Posted 3 years ago #
Yeah that was unchecked already
krugazul
Member
Posted 3 years ago #
when i switch between the visual and html editor the code remains the same, its only when i click save that it removes everything
krugazul
Member
Posted 3 years ago #
well as a temporary solution i found this
http://www.randomsnippets.com/2008/03/07/how-to-find-and-replace-text-dynamically-via-javascript/
It will find and replace strings for you.
I simply changed the code to look for class="new_window" and added that to my links.
But not permanent