WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGEN Gallery] Single pic changes the paragraph break (3 posts)

  1. acekin
    Member
    Posted 5 years ago #

    When there is a single picture in a paragraph, dropped in from NextGen Gallery, the paragraph break at the end of the current one is not honered in Firefox. Take a look at:
    http://www.keptlight.com/blog/?p=420

    At the end of the first paragraph there is no space before the next one starts. The first paragraph ends with "...understand what various controls do."

    I tried the following with no success:
    1. Add opening and closing P tags in the HTML view
    2. Add opening and closing P tags in the HTML view and add a BR tag before the closing P tag (current state)
    3. Insert a single BR tag after the line break in HTML view
    4. Insert 3 BR tags between the paragraphs in HTML view

    If I remove the single pic from the paragraph, its normal behavior returns. Also, it displays correctly in IE7 even in its current state which should create an extra line between those paragraphs.

    I would like to find out why it is happening and how to correct this behavior. I am not sure if it requires any code modification to NGG.

    Thanks

  2. acekin
    Member
    Posted 5 years ago #

    Additional information for my earlier question:
    1. The right or left float does not seem to matter
    2. If I put some text before the single pic, pushing it one line down, the paragraph behavior returns to normal, but I left it in the state as I described it in my original post.

  3. Technokinetics
    Member
    Posted 5 years ago #

    There seems to be a problem with using the [singlepic] quicktag where there's nothing else in the paragraph. WP doesn't wrap this in paragraph tags as it should, usually missing out the </p> tag in my experience. If there's text in the same paragraph as the [singlepic], then text and image will be wrapped correctly.

    As a workaround, switch to code view and manually wrap the [singlepic] quicktag in paragraph tags, applying a random class to prevent WP from stripping them out, e.g.:

    <p class="nggfix">[singlepic id=1 w=100 h=100 float=left]

    - Tim

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.