WordPress.org

Support

Support » Plugins and Hacks » Animoto Embeds » Animoto Embeds – request to resize once posted

Animoto Embeds – request to resize once posted

  • 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/

Viewing 1 replies (of 1 total)
  • 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"
          ];
Viewing 1 replies (of 1 total)
  • The topic ‘Animoto Embeds – request to resize once posted’ is closed to new replies.
Skip to toolbar