• For some reason, with WordPress 2.3.3, any time I add an image hosted on the same server domain as the site is installed to, the option style="display: none"is added to the IMG tag in the code of my post. I can’t delete it manually, and I can’t track it down in the code of the only plugin that I’m using on my site (Anarchy Media Player)

    This is acting as a complete and total showstopper for me. Does anyone have some pointers?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Never heard of it.
    Deactivating the plugin will stop this behaviour?

    Are you, actually, uploading the images in WP or…?

    Also, turn off the visual editor (users > your profile) and upload an image, then send to the editor. Watch what is the code added to your post.

    Thread Starter tellarhk

    (@tellarhk)

    Using WordPress itself to upload images is next to impossible for the site I’m working on. I have to set it up so it can be easily used by someone that’s a bit of a novice when it comes to file uploads so it’s been a real trick to master FTP let alone tracking down the location of an uploaded image file. Plus, this also seems to break plugins that use graphics on the admin pages.

    I can’t see where the plugin might be causing this problem, as I’ve looked through the code to see where it might create that option and can’t find anything. Disabling the plugin does nothing to fix the error – it persists no matter what. I’ve already had to delete and restart this entire site once due to this bug, and am hoping someone else might have some insight.

    I just tried without the visual editor, and it seems not to display the code that looked like it was causing the problem – but it’s still not loading the image, even when the image itself is publicly readable.

    Note: I’m designing the site for someone that I’m having to teach all along the way, and they’re rather tough to bring along when it comes to anything new. I really hope this can be done without jumping through too many hoops.

    michigal

    (@michigal)

    I’ve just encountered the same problem. It’s when I’m trying to add an image to a page, not a post. The image is on the same server, in a different folder, as I wasn’t able to upload it with the built in uploader for some unknown reason. All other post images (and the ones in he sidebar) display normally. No matter if I add the image manually in the code editor, or go through the visual editor and add the image. As soon as I either save it or switch to the visual, or anything for that matter, the style="display:none;" code is added. It’s highly unusual.
    I’m using the Suhweet 1.0 theme, and can’t find anything in the style sheet about this. Nor in the page template.
    And yet I’d been able to upload images on the about page, and have them display normally.

    Using Firefox 2.whatever if that makes any difference.

    Edit:
    I just tried uploading the same image, a 125×125 jpg in the image uploader on the “write post” page, and it still wouldn’t show up. And when I sent this invisible pic to the editor, the same thing happened, the code style="display:none;" was added. WTF???

    michigal

    (@michigal)

    It appears to be related to the size of the image? Does WordPress 2.3.3 have a minimum image size for uploading? And from another thread in the forums, I see WordPress 2.5 also has the same issue.

    This certainly should be filed as a bug. An image 5 kb or less in size should be able to be uploaded and viewable.

    I combined the four images into one, and then had no problems uploading/displaying them, as the size increased, obviously.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘style=”display: none” mysteriously added to all image links’ is closed to new replies.