WordPress.org

Ready to get started?Download WordPress

Forums

Caption Loses Formatting Once Posted (4 posts)

  1. justex07
    Member
    Posted 6 years ago #

    I installed 2.6.3 tonight and am loving the captions... I guess I just never knew that was there haha. But I noticed something sad, and it is probably something like a theme problem but I'd love to know how to fix it.

    In the edit pane, it looks fabulous, caption is centered below the image which has a nice frame with shadow around it.

    Click here to view edit pane

    However, once I post the entry, that beautiful formatting disappears.

    Click here to view posted entry

    Does anyone know how to fix this? I am using the theme Statement 1.0 from Blog oh Blog

    Thanks Guys and Gals!

  2. Xamataca
    Member
    Posted 6 years ago #

    link to the page so we can see the css/xhtml?

  3. justex07
    Member
    Posted 6 years ago #

    Good point

    It's Just Justin

  4. Xamataca
    Member
    Posted 6 years ago #

    In the first photo/entry the caption is inside a <p> that has an inline style="text-align: center;"
    The following pics, every caption is inside plain <p> tags (text is left aligned, like in your entry post text)

    I would create a .center { text-align: center; } class in your style css and apply it where I needed in the wp html editor or just create a custom field and put the code to ouput it in your index.php template inside a <span class="center">caption here</span> if you don't want to type tags every time you post an entry.

Topic Closed

This topic has been closed to new replies.

About this Topic