Jump to content


Photo
- - - - -

help embedding vimeo player using pl_ framework shortcode


  • Please log in to reply
5 replies to this topic

#1 danielfinn

danielfinn

    Advanced Member

  • Members
  • 92 posts

Posted 13 July 2012 - 12:48 AM

I am using one of the pagelines framework shortcodes to embed a video from vimeo and was wondering if it was possible to adjust the width of the player? Either as a percentage or in pixels.

I am using the following code


 [pl_video type="vimeo" id="42811051"]

Which I found at: http://demo.pageline...ramework/tools/

#2 bxbmedia

bxbmedia

    Advanced Member

  • Members

  • 79 posts
  • LocationAnn Arbor, MI

Posted 13 July 2012 - 01:00 AM

Yes,

In addition to type and id, the shortcode accepts attributes for width and height just like this for example:
 [pl_video type="vimeo" id="42811051" width="100%" height="300px"]

The units are not hard-coded, so any units should work.

#3 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 13 July 2012 - 02:36 AM

Thanks, @bxbmedia

#4 bxbmedia

bxbmedia

    Advanced Member

  • Members

  • 79 posts
  • LocationAnn Arbor, MI

Posted 13 July 2012 - 03:47 AM

@catrina - there's a button for that ;)

#5 danielfinn

danielfinn

    Advanced Member

  • Members
  • 92 posts

Posted 13 July 2012 - 09:44 AM

Thanks. I tried entering the following code just to see the player at an extreme

 [pl_video type="vimeo" id="42811051" width="10%" height="300px"]

but it did not work in reducing the size. I am implementing the code wrongly?

#6 beardedavenger

beardedavenger

    Unicorn Wrangler

  • Members

  • 1219 posts
  • Country: Country Flag

Posted 13 July 2012 - 12:59 PM

There are no attributes for height and width for the video shortcode, because its' responsive.

It will automatically fill the parent div that it sits in.

If you want it to not be as wide, do something like
 <div style="width:75%; margin:0 auto;">
	[your shortcode]
	</div>

This will return a container 75% as wide, and centered.

Nick