WordPress.org

Support

Support » How-To and Troubleshooting » Almost Fixed!! How Can I Stop The Extra Line?

Almost Fixed!! How Can I Stop The Extra Line?

  • I downloaded a new WYSIWYG editor and now I can control fonts.
    But after an hour of working on this and trying different methods I still cannot get rid of the extra line break in this section

    http://www.swindledforjesus.com/?page_id=114

    So how I make it look like a normal page? I’ll add the extra blank line by hitting the ‘ENTER’ key. I don’t want it done for me.

Viewing 15 replies - 1 through 15 (of 20 total)
  • Anyone answer or is this not possible in WP?

    That’s a long post. Which extra line break are you referring to?

    Every one. If I write
    “But I don’t want to go to boarding school.”
    “But you have to!”

    I get

    “But I don’t want to go to boarding school.”

    “But you have to!”

    no matter what I do.

    Ah. When you use the Enter key, WP assumes you want to enter a <p> tag, which gives the double line space between paragraphs. That’s the normal way that HTML displays <p> tags (actually, the normal way that browsers display HTML <p> tags).

    If you want to change it, edit your style.css — but you may be surprised by what else changes.

    Either that, or try holding down the Shift key when you press Enter.

    I tried the shift key while hitting enter and it did work but as I worked my way down the text it would drag down and insert a blank line a few paragraphs above.

    As for the style.css, I know how to edit that but I would not know what change to make.

    Moderator John James Jacoby

    @johnjamesjacoby

    I would recommend not using the WYSIWYG editor, and wrapping your paragraphs with your own custom classed paragraph tags.

    Or you could also insert a <br /> rather than start a new paragraph, that might also be a more exact way of presenting your content?

    Given what the WYSIWYG editor does, I’m surprised it doesn’t have an “insert line break” button. Hmm…

    OK, this is really getting me to reconsider my switch to WordPress. It does so many things but simply typing text like on a word prcoessor seems to be a huge undertaking.

    Is there a theme I can buy that will do this? do I have to hire someone to fix this? I have the credit card ready for whatever it takes to get this resolved.

    OK, this is really getting me to reconsider my switch to WordPress. It does so many things but simply typing text like on a word prcoessor seems to be a huge undertaking.

    And using a word processor is not like using a typewriter… Formatting web text is just not the same as formatting text with an offline word processor. If you want more or less space between paragraphs or line breaks, either edit theme’s css or choose a better-spaced new theme. When writing posts with WordPress, two enters give you a new paragraph and one enter gives you a line break. I never bother with adding my own paragraph or line break tags.

    The css you need to adjust is the margin or padding of p and/or line-height.

    Here is my style.css taken from the theme editor.
    I don’t see P section. Can one be added?

    Large amount of CSS removed. We can see the CSS on your website, you don’t need to post it. – moderator

    Can a new p section be added to fix this? If so, what should it contain?

    better way to use BR tag instead of <p> if you what it work your way.
    anyway – we’ll try to help you with new style for <p> tag tomorrow.
    i’ll email you.
    thx

    Moderator Samuel Wood (Otto)

    @otto42

    WordPress.org Tech Dude

    I see this on your page’s CSS:

    p{
    margin-bottom:0px;
    }

    If you don’t want any separation between your paragraphs (wall-of-text), then make the margin-top equal to zero too.

    And it would be best to make that into #content p instead of just p. That way, you’re targeting just the specific content sections instead of all P’s on the whole page.

    Thanks, Nocookie, I uploaded the new CSS file and the single line spacing is working great.
    http://www.swindledforjesus.com/?page_id=114

    Two remaining issues

    1. How can I do a tab character. I’ve goggled it and from what I am reading it is inserting code. I tried the indent function but that moved the whole paragraph.

    2. How can I get a blank line when I need one between sections?

    1. How can I do a tab character.

    Tabs are not used for web text. New paragraphs are indicated by the space between the paragraphs.

    2. How can I get a blank line when I need one between sections?

    By having a top or bottom margin or padding for paragraphs (p).

    Moderator Samuel Wood (Otto)

    @otto42

    WordPress.org Tech Dude

    If you’re pushing paragraphs together like that, then indention can still be useful.

    p {
    text-indent: 1.5em;
    }
Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Almost Fixed!! How Can I Stop The Extra Line?’ is closed to new replies.