Forums

Jetpack Shortcode Embeds (2 posts)

  1. MultiformeIngegno
    Member
    Posted 8 months ago #

    Hi! :)
    Quick question: I'm using Jetpack and the feature to embed videos from YouTube/Vimeo & co with a short code (http://en.support.wordpress.com/videos/vimeo/).

    For example on my website I added this code to embed a Vimeo video:
    [vimeo http://vimeo.com/video_id w=200&h=150]

    Everything works fine, except that I'd like to align the video to the left... I tried adding parameters like align=left, position=left et similia but it didn't work..

    Can you help me?

    Thanks in advance,
    Lorenzo

    EDIT: Another thing I noticed (not really related to the topic but anyway a "MUST FIX"): the shortcode for Vimeo uses the old embed code. The new iframe embedder works for both Flash and non-flash browsers (iOS in primis), the old one doesn't.

  2. MultiformeIngegno
    Member
    Posted 8 months ago #

    I think I got the replies... there's no align= parameter.. and the way to have the new embed code is to edit the file jetpack/modules/shortcodes/vimeo.php

    Find the old code (<<<EOS) and replace it with:
    return <<<EOS
    <iframe src="http://player.vimeo.com/video/$id?title=0&byline=0&portrait=0" width="$width" height="$height"></iframe>
    EOS;
    }

    Hope this can help.

Reply

You must log in to post.

About this Topic