WordPress.org

Ready to get started?Download WordPress

Forums

Rewrite [caption] output-code (2 posts)

  1. Anonymous
    Unregistered
    Posted 5 years ago #

    I want to rewrite the caption output code - today, it outputs a <div> within a <p>-tag (most likely), and a <p>-tag to display the text - this should be changed to a <p>-tag as the containing block, and a <span>-tag for the caption-text - this works just fine, and validates without problems.

    So... where is the output-code for the [caption]-shortcode situated? If I could just find this, I'd be able to fix this myself, and avoid having to do this manually each and every time.

  2. Anonymous
    Unregistered
    Posted 5 years ago #

    Nevermind, I found it, in media.php.

    Now all that is breaking the valid XHTML is improperly nesten <p>-tags, seemingly appearing out of nowhere, especially right after the <div class="ebody">-tag. Oh well, that will have to wait until another day...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags