Forums

WordPress is formatting my HTML Tags (6 posts)

  1. 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/

  2. Samuel B
    moderator
    Posted 3 years ago #

    Did you uncheck "WordPress should correct invalidly nested XHTML automatically" under "Settings" - "Writing"?

  3. big9erfan
    Member
    Posted 3 years ago #

    I have that unchecked and I have a similar problem as the OP.

  4. krugazul
    Member
    Posted 3 years ago #

    Yeah that was unchecked already

  5. 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

  6. 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

Topic Closed

This topic has been closed to new replies.

About this Topic