Support » Themes and Templates » [Theme: P2] [video width="x" height="y" ...] becomes

  • so post editor is good at creating shortcode tag. i.e.:

    [video width="820" height="461" webm="opm.webm" loop="true" autoplay="true" preload="auto"][/video]

    the width and height is the 100% size of the video embeded which is great

    but when outputting, the HTML becomes:

    <video class=”wp-video-shortcode” id=”video-117-1″ width=”632” height=”355” loop=”1″ autoplay=”1″ preload=”auto” controls=”controls”>

    to be more precise the complete HTML is:

    <div style=”width: 632px; ” class=”wp-video”><!–[if lt IE 9]><script>document.createElement(‘video’);</script><![endif]–>
    <video class=”wp-video-shortcode” id=”video-117-1″ width=”632″ height=”355″ loop=”1″ autoplay=”1″ preload=”auto” controls=”controls”><source type=”video/webm” src=”opm.webm?_=1″ />opm.webm</video></div>

    why is there a defined different width and height? how can i remove it?

    thanks!

  • The topic ‘[Theme: P2] [video width="x" height="y" ...] becomes’ is closed to new replies.