Extra Spaces at Top when Inserting Image in the WP Editor (6 posts)

  1. fas.khan
    Posted 7 years ago #

    Hi all,

    I am really stuck and was about to cry infact ... This is even happening in the fresh install of the wordpress. When I write some text in the editor and then insert an image in the editor (align it left, etc), it works wonderfully.

    But then, when I give the image a Caption and then "Publish". The Editor forcibly insert a White space on top of my text. You can see it that before you publish, there is no white space, but as you publish, there is.

    This white space never comes, when I insert a picture without a Caption, but as soon as I put Caption for the picture, (the image surrounds itself against [caption] tag in the HTML) and then put a white space on top of the whole post in the Editor.

    Please help me. Any help me would be highly appreciated!

    How can I get rid of this space :-(

  2. esmi
    Forum Moderator
    Posted 7 years ago #

    Sounds like you need to edit your theme's CSS. However, without a link to your site, I can't give you anything more specific.

  3. Saurus
    Posted 7 years ago #

    This is probably an issue of "padding" in the CSS for images. I believe the default padding is something like 20 pixels. Padding is actually the wrong thing for this issue - I would use "margin" for this if it was an issue for me - which it's not.

  4. fas.khan
    Posted 7 years ago #

    But it is in the admin. and the space is being shown in the Editor where I write the post. Do you think it is due to the CSS of my theme?

    Many Thanks.

  5. esmi
    Forum Moderator
    Posted 7 years ago #

    Unlikely unless it adds custom admin CSS. Switch to the default theme and see if there's any difference.

  6. Paul Whitener Jr.
    Posted 6 years ago #

    This is occurring for me as well, WP 2.9.1. Without a caption the image and post appear correctly. Once I add a caption, the following gets inserted above my post:

    <p><br class="spacer_" /></p>

    A search has revealed that translation plugins can cause this issue, I am not using any of those.

    Any help?

Topic Closed

This topic has been closed to new replies.

About this Topic