WordPress.org

Ready to get started?Download WordPress

Forums

Animoto Embeds
Animoto Embeds - request to resize once posted (2 posts)

  1. ops0603
    Member
    Posted 11 months ago #

    Hi,

    Downloaded your plug-in as I use Animoto extensively, and it works beautifully on my blog. However, I would like to increase the default size of the video that gets embedded, so how would I do that ?

    What is the additional HTML code that I need to enter along with the URL to embed a video that would be 580 px wide and 300 px high?

    Please advise, and I look forward to hearing back from you.

    Cheers,
    Mike

    http://wordpress.org/plugins/animoto-embeds/

  2. greg--j
    Member
    Posted 6 months ago #

    To make your embedded videos automatically 580px wide just add this in your functions.php file:

    if ( ! isset( $content_width ) )
    	$content_width = 580;

    It should work, but if you need to take responsive theme into account, i'd suggest you use fitvids.js . Just add this line to your fitvids.js if you happen to use it:

    "iframe[src*='animoto.com']",

    You'll notice where this line fits, so the whole part will look like this:

    return this.each(function(){
          var selectors = [
            "iframe[src*='player.vimeo.com']",
            "iframe[src*='youtube.com']",
            "iframe[src*='youtube-nocookie.com']",
            "iframe[src*='kickstarter.com'][src*='video.html']",
            "iframe[src*='animoto.com']",
            "object",
            "embed"
          ];

Reply

You must log in to post.

About this Plugin

About this Topic