Support » Fixing WordPress » Rewrite [caption] output-code

  • 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.

Viewing 1 replies (of 1 total)
  • 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…

Viewing 1 replies (of 1 total)
  • The topic ‘Rewrite [caption] output-code’ is closed to new replies.