WordPress trick – Adding empty lines

Apr 3rd, 2008 | By Sites that Soar / Ais | Category: Website design

Since I’m copying existing pages (in HTML) to WordPress, I’m running into a few layout issues.

One of the biggest challenges has been adding blank lines. Sometimes, I need them to place text next to photos ‘just so’.

However, simply leaving an extra blank line in the text… it didn’t work… not in Visual mode and not in HTML.

I tried using tables. The results were disappointing.

Then, I tried something quirky. I added this code (in the HTML tab) for every two lines that I wanted to leave blank:

<p> </p>

(Yes, that’s the code for a standard paragraph.  The only thing between the paragraph codes is the code for a blank space. )

That code works, even in WordPress 2.5 and even in Firefox browsers.

6 comments
Leave a comment »

  1. Wow! Adding posts in WordPress is indeed frustrating! If there were no images, it would be an easy thing, but I need to have images to better depict my message. I hope WordPress people fix this. Using the as stated works, that is, until you look at the post in Visual mode, then it disappears. Not good.

    I wish they would provide the ease that Publisher provides when creating a page. Each paragraph, each image right where you want it.

  2. Chromedragon,

    If your images are disappearing, you may have a glitch in your WordPress installation. Consider overwriting the files with a fresh copy of them, as if you’re doing an update. (The step-by-step instructions are at WordPress.org: http://codex.wordpress.org/Upgrading_WordPress )

    Other than that, I agree. There are times when it’s very frustrating to get a post to look “just so” and include graphics where they’re supposed to be.

    That said, the ease of updating and maintaining websites still makes WordPress my first choice. If I didn’t have WordPress, I’m not sure that I’d be updating my larger websites at all.

    I hope you find some easy fixes for your post challenges. Publisher sets the bar fairly high, and though I don’t expect WordPress to reach that in any hurry, sometimes we find tweaks that work well enough for now.

    Cheerfully,
    Ais

  3. To add an empty line, type a character on the line and make it the same color as the background so it will be invisible, for example a white period on a white FFFFFF page, like this:
    .

  4. OK. heres another solution to add blank lines, but this is not a clean method:
    add a – or ~ or any small special character and change its color equal to the background color.

  5. I think what the main author meant to write, in terms of code to put on the HTML page, is:

    <p>&nbsp</p>

    If I just put a blank space inbetween the <p> then I get no blank line. I have to put the &nbsp; (which is HTML for “blank space”) to get that effect.

    Note that, to write that ampersand, you’ll have to write &amp;nbsp; to actually get it to show the ampersand, as it’ll translate the “&amp;” into just “&” if you don’t write the extra. Which, as you can guess, gets recursively annoying *very* quickly…

  6. Here is one more solution:

    http://wordpress.org/support/topic/404135?replies=1

    ver. 2.9.2 or near

Leave Comment

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution. Comments may be edited to make them office-safe. Spam and questionable links will be removed.