Forums

Vimeo Embeding help (4 posts)

  1. stiwdio
    Member
    Posted 4 months ago #

    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.

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

    http://vimeo.com/31100268

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

  3. stiwdio
    Member
    Posted 4 months ago #

    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

  4. 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]http://vimeo.com/31100268[/embed]"); ?>

Reply

You must log in to post.

About this Topic