Forums

WP inserting unwanted spacer code with images (3 posts)

  1. lindafar
    Member
    Posted 1 year ago #

    Is there some way of preventing WP from inserting about 4 lines of blank space before and after an image inserted into a post? I've gone into the html tab and removed them, but every time I save the post, it puts them right back in again leaving a gap of white space above and below the image that I do not want.

    This is the line of code it's inserting repeatedly:

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

    It puts about 4 of these before and after the image.

    THANKS for any help on preventing this from happening!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the default theme to rule out any theme-specific problems?

    - resetting the plugins folder by FTP or phpMyAdmin? Sometimes, an apparently inactive plugin can still cause problems.

  3. lindafar
    Member
    Posted 1 year ago #

    Thanks esmi, will give these a shot.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.