• Hi there – I would like to include a video on my page and have tried HTML5 code – have tried the following code but the video appears but the all other page elements disappear!

    any advice?
    (would prefer not to use YouTube/Vimeo embedding)

    Thanks Andy

    This code in functions .php

    function html5_video($atts, $content = null) {
    extract(shortcode_atts(array(
    “src” => ”,
    “width” => ”,
    “height” => ”
    ), $atts));
    return ‘<video src=”‘.$src.'” width=”‘.$width.'” height=”‘.$height.'” controls autobuffer>’;
    }
    add_shortcode(‘video5’, ‘html5_video’);

    This following shortcode in page:

    [video5 src=”https://your-site/videos/your-video.mp4&#8243; width=”720″ height=”480″]

Viewing 1 replies (of 1 total)
  • Theme Author Access Keys

    (@access-keys)

    Hi there,
    Sorry for the delay in reply. Are you still having this problem. Please let us know.
    Thanks,

Viewing 1 replies (of 1 total)
  • The topic ‘Insert html5 video’ is closed to new replies.