wordpress.com seems to be removing code from my pictures

  • Unknown's avatar

    I like pictures on my blog. To avoid using up the space provided here and then {gasp} paying for disc space, I upload all of my thumbs (if any) and the pictures to the free space at allyoucanupload.com.

    I compose my entry in ecto. ecto does not have a way to easily write the code for linking pictures and thumbs. No problem, I do that with PageSpinner (yes, Macintosh)and paste that into ecto. This all takes a while… but if it would work, it would be worth the effort.

    When the blog entry is working well in ecto, I upload the whole thing to WordPress.

    Usually I’ve gone to some trouble to write thoughtful alt= and title= so that disable folks can understand what I’ve posted, and able-bodied browsers can read the title by hovering the mouse over the image.

    When I look at the source code for the uploaded image, the alt= and title= are removed. I’ve tried pasting in the code again at the wordpress web edit field, and it will retain the alt, but strip the title= information.

    What is going on, and how can I force this to appear the way I plan?

    The titles would be really useful for having those images noticed by the search engines.

  • Unknown's avatar

    I posted about this a few months ago. Even using the editor, WP will strip the Title attribute. There is a text box in the editor that WP labels Title. In fact, WP uses it as an Alt attribute.

    You probably know this but the Alt and Title attributes are not for the same purpose. The Alt attribute is used only for images and the Title attribute can be used for elements such as link, table, or form as well as for an image.

    Firefox does not display Alt text on a mouse hover but it will display Title text. That’s how it is supposed to be. The ALT attribute is designed to be an alternative text description for images. ALT text displays before the image is loaded (if it’s loaded at all) in the major browsers and instead of the image in text-based browsers like Lynx. IE on the other hand will display Alt text on mouse hover. I’m not sure but I think Opera displays like FF.

  • Unknown's avatar

    @howsound
    Is the code you’re trying to insert by any chance java or anything like that? Perhaps you could post it here between backticks(`) (to the left of the#1 key) so we can take a look.

  • Unknown's avatar

    @thesacredpath – nope, not java, just html. Code like this:
    <img src="http://aycu12.webshots.com/image/32131/2000638283136430563_rs.jpg" alt="Queen of Surrey - BC Ferries | Lion's Bay | West Lion" title="Queen of Surrey - BC Ferries | Lion's Bay | West Lion">

    In this case, alt and title said the same thing, but sometimes I choose different copy. When I uploaded from ecto, all that remained was the url for the image. By going into the web edit form and pasting in this code, wp.com stripped only the title and left the alt.

    @myronhoward – I went to your site and found your comment. What I don’t understand is the policy of wp.com.

    Thanks to you both.

    What I’ve not been able to find is the FAQ that explains what is happening or why. What is wrong with the code that wp.com has to mess with it? It is a pain to edit a posted article.

  • Unknown's avatar

    Hmmm, nothing strange there that I can see, but I’m not an expert. Perhaps one of the code guru’s will pop in and give it a look.

  • Unknown's avatar

    i really think this is a case for staff support; there doesn’t seem to be a reason why attributes would be stripped out. Use the Support button that is normally available on your Dashboard Monday-Friday to ask them.

    Make sure you include the following:
    – your browser
    – your browser version
    – your FULL blog address (not the name, the real address that begins http:// )
    – your FULL username
    – your REAL email address that is registered here
    – and a very good description of the exact problem.

  • The topic ‘wordpress.com seems to be removing code from my pictures’ is closed to new replies.