Forums

That Line Breaks issue again (4 posts)

  1. vandym
    Member
    Posted 3 years ago #

    I've spent days searching for a solution to this - to no avail.

    I've tried <b>, <br /> , and <p>; tags, but they all get stripped out. Headings <h1>, <h2>, etc. all end up jammed up against the previous paragraph which looks dreadful.

    I know this has come up time and time again, but I can't find a solution. Has anyone found a solution to this?

  2. EternalSkyChaz
    Member
    Posted 3 years ago #

    If you read the Help section where you create posts and pages, they will tell you that you need to do all that in CSS. But there's really no way to get CSS to put in line breaks wherever you want them.

    This may be a hopeless cause as the designers of WP are so bent on making WP work like some kind of magical CSS dance that they have taken all the flexibility out of their software.

    However, since it is the tinyMCE rich text editor that strips out those HTML tags, you may be able to find a way to alter that code to stop taking out line breaks.

  3. rhodo
    Member
    Posted 3 years ago #

    Insert this where you want a line break:

    <div><br class="webkit-block-placeholder" /></div><div>

    Works for me. It is not perfect as the space it creates is a little bigger than a normal one. But it is good enough.

  4. EternalSkyChaz
    Member
    Posted 3 years ago #

    Thanks for the code, but that is hardly the proper solution. Really, the best solution is for WP to stop attempting to force users to do things their way. Every web browser available will automatically parse html code of any variety. WP does not need to do it as well.

    Go back to pre v2.0 and keep things, lite, fast and simple.

Topic Closed

This topic has been closed to new replies.

About this Topic