Jump to content
Sign in to follow this  
danielfinn

help embedding vimeo player using pl_ framework shortcode

Recommended Posts

danielfinn

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.pagelines.com/framework/tools/

Share this post


Link to post
Share on other sites
bxbmedia
Yes, In addition to type and id, the shortcode accepts attributes for width and height just like this for example: [code][pl_video type="vimeo" id="42811051" width="100%" height="300px"][/code] The units are not hard-coded, so any units should work.

gl hf

Share this post


Link to post
Share on other sites
bxbmedia
@catrina - there's a button for that ;)

gl hf

Share this post


Link to post
Share on other sites
danielfinn
Thanks. I tried entering the following code just to see the player at an extreme [code][pl_video type="vimeo" id="42811051" width="10%" height="300px"] [/code] but it did not work in reducing the size. I am implementing the code wrongly?

Share this post


Link to post
Share on other sites
beardedavenger
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 [code]
[your shortcode]
[/code] This will return a container 75% as wide, and centered. Nick

Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×