WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
[resolved] Image caption killed my paragraph (3 posts)

  1. chappie
    Member
    Posted 7 months ago #

    Happy New Year, Customizrs!

    Now...either I'm drunk or blind...or I've discovered a Yuletide bug!

    I can't link to the page as it's offline, but imagine, if you will, an empty page with just a standard framed slider on it. Next, I place an image top-left which measures 200w x 478h. Then I enter some text, four or five paragraphs, which starts as expected,just to the right of the image, flows down the right edge of the image and then flows underneath the image. Looks just lovely. I add a bit of styling - a bit of bold text here, a word or two of coloured text there and even a hyperlink or two. Splendid. Nearly done.

    Then, I click on the image to bring up the edit window and I give it an alt tag and a caption. I save and then update my page. Suddenly, my layout looks very different. My caption looks OK but someone - or something - ATE my first paragraph! It has gone. It is no more. The paragraph is an ex-paragraph.

    To be honest, I haven't yet tried de-activating my plugins so it's too soon to call this a bug. But I thought I would flag it up, just in case anyone else loses paragraphs in mysterious circumstances.

    Bonne année!

  2. ElectricFeet
    Member
    Posted 7 months ago #

    Switch from the visual editor to the text editor and paste here what's in there (remembering to use backticks). With luck, your text should still be there and we can see what's going wrong.

    If your text isn't there, then you can use the wonderful new version browser that WordPress 3.7 gave us, and hopefully get it back again. (Can't remember its name right now and I'm not at my desk, but it's the features that shows you all your incremental updates.)

  3. chappie
    Member
    Posted 7 months ago #

    Thanks ElectricFeet: it wasn't an issue in that sense as I was easily able to restore a previously saved version. And I have now found the cure.

    Seems that somehow when applying <strong> tags to my opening paragraph, the image got included within the tags (despite me taking great care in the visual editor not to include the image - but heck, I should have switched to the text editor for safety). This gave me HTML like this:

    <strong><span style="color: #be491f;"><img class="alignleft size-full wp-image-526" alt="prfeatv" src="http://localhost:8888/sitename/wp-content/uploads/2013/12/prfeatv.jpg" width="200" height="478" />Beauty and Soul</span> offers a variety of therapies...

    After taking the image outside the bold tags, I was able to add a caption without losing my opening paragraph.

    I'm still don't understand the logic of it though. Adding a caption to an image which had inadvertently been included in the first para's <strong> tags shouldn't have caused such havoc, imho.

Reply

You must log in to post.

About this Theme

About this Topic