WordPress.org

Forums

wordpress removing links etc when switching between visual/text (2 posts)

  1. isonychia
    Member
    Posted 2 years ago #

    I don't think I ever noticed this happening before and so I assume it is due to upgrading to 3.5

    I have pasted the following code into one of my pages in the TEXT view:

    <div class="product">
    <div class="product_name_multi">product 1</div>
    <div class="product_image_multi"><img class="alignnone size-full wp-image-6292" alt="pliers" src="http://www.mydomain.com/wordpress/wp-content/uploads/2012/12/fp7000.jpg" width="1141" height="1927" /></div>
    </div>

    If I then go to the visual editor and add the link for the image THEN switch to the text editor it looks like this:

    <div class="product">
    <div class="product_name_multi">product 1</div>

    <div class="product_image_multi"><img class="alignnone size-full wp-image-6292" alt="van staal pliers" src="http://www.mydomain.com/wordpress/wp-content/uploads/2012/12/fp7000.jpg" width="1141" height="1927" /></div>
    </div>
    (it used to keep the a title and href inside the div now it removed it outside the div)

    THEN switching back to the text editor and it looks like this:

    <div class="product">
    <div class="product_name_multi">product 1</div>
     
    <div class="product_image_multi"><img class="alignnone size-full wp-image-6292" alt="van staal pliers" src="http://www.mydomain.com/wordpress/wp-content/uploads/2012/12/fp7000.jpg" width="1141" height="1927" /></div>
     

    </div>

    Before upgrading to 3.5 my image AND my link stayed inside the div. Now it's adding  , removing the a title and href outside the div and sometimes it strips out the link altogether.

    Does anyone know why it's doing this?

    Thanks,
    iso

  2. isonychia
    Member
    Posted 2 years ago #

    Well it looks like I pasted the same code.

    I will simplify it.

    WordPress is taking my a href and moving it outside my div which is supposed to be a container for my images and link.

    It's also sometimes removing the link totally depending on if I switch from the text editor to the visual editor and back.

    Thanks,
    iso

Topic Closed

This topic has been closed to new replies.

About this Topic