WordPress.org

Ready to get started?Download WordPress

Forums

Why do Extra Spaces get added in the editor? (5 posts)

  1. martcol
    Member
    Posted 2 years ago #

    Here's an example page: brightontherapyservice.co.uk/about/

    At the bottom of the page the text has double line spacing under the heading, "Qualificatoins" and I can't work out how it happens.

    The site owner adds the content and invariably, she edits a page which ends up with some or all text doing this. I then have to go in and re-edit to try and sort it all out.

    What advice can I give to editors to stop this from happening?

    Thanks

    Martin

  2. Johnb81
    Member
    Posted 2 years ago #

    Hi Martin,

    If you use Firebug to analyse the website, it clearly shows that there is style difference between all the text on the page and the text under qualifications.

    E.g. all the text is in <p> </p> code, while the text under qualifications is in <p style="line-height:24px;"> </p>, therefore a different style is being assigned to this text.

    In the page / post editor you can fix this by highlighting the text and choosing the correct format from the Styling drop down menu.

  3. martcol
    Member
    Posted 2 years ago #

    Well, I have gone back over that piece of text and fixed it. What had happened was that some extra <span> elements had been added with and inline style for line-height.

    Not sure where they came from?

    Martin

  4. Johnb81
    Member
    Posted 2 years ago #

    Glad your issue is solved :)

    Most of the time such things happen when you are copying content from another source (such as word document, or html file) which already has defined formatting.

    What I usually do to avoid this, is when copying from Word or any other source which might contain formatting, first I paste the content to Notepad, to get rid of all formatting, then copy the notepad content and copy that to WordPress.

  5. martcol
    Member
    Posted 2 years ago #

    Thanks Johnb81

    I think the Notepad thing is the way to go and easy to instruct the site owner in!

    Martin

Topic Closed

This topic has been closed to new replies.

About this Topic