• Hi
    Wonder if anyone can help;

    I basically want to embed a video from Vimeo. Ideally I could liek to add the code in a custom field but can put it in the page template also.

    But when I do enter the vimeo iframe code in the page template it loses the height and blows it up really big, putting a large black border top and bottom.

    Is this something to do with WordPress? I’ve copied the code straight from the site. IM not putting the code in a post but in a page.

    If anyone has any suggestions or help that would be great.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    In a page or post, you should be able to just past the URL into the editor like so.

    https://vimeo.com/31100268

    Just use the URL, the oEmbed functionality will take over from there.

    Thread Starter stiwdio

    (@stiwdio)

    its in a page – im trying to use the new vimeo html5 code but its proving to be a nightmare;

    They use iframes to embed the video, but when I embed this into the page TEMPLATE it loses the height and width dimensions in the code

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    The short code should work in a page editor too. The width is set by $content_width the height just adjusts after that.

    Within a WordPress template the raw HTML from Vimeo definitely should work without changing the height and width.

    Try this trick within the template file, see if it works for you.

    <?php echo do_shortcode("[embed]https://vimeo.com/31100268[/embed]"); ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Vimeo Embeding help’ is closed to new replies.