Title: Responsive Video Option/Shortcode?
Last modified: August 20, 2016

---

# Responsive Video Option/Shortcode?

 *  Resolved [ZainB](https://wordpress.org/support/users/zainb/)
 * (@zainb)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/responsive-video-optionshortcode/)
 * Hi,
 * The player seems to be working well using the SV button, and I can confirm that
   this is also working in WP 3.5.1 (for me anyway).
 * The only question is, how do I make the video responsive? At the moment, it’s
   using a fixed width and height (640×360).
 * Is there an attribute that can be added to the shortcode, or is there something
   I’m currently missing?
 * Thanks in advance for any help.
 * [http://wordpress.org/extend/plugins/sublimevideo-official/](http://wordpress.org/extend/plugins/sublimevideo-official/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [ZainB](https://wordpress.org/support/users/zainb/)
 * (@zainb)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/responsive-video-optionshortcode/#post-3520077)
 * Quick Hack for anyone interested in making the inserted videos work with a Responsive
   theme.
    1. Open the “sublimeVideo-official” plugin folder
    2. find the “class-sublimevideo-shortcodes.php” file to edit
    3. on line 38, add the `data-settings='autoresize:fit'` part to the video tag.
    4. save the file
 * That works for me for the moment and makes the videos fit to the size of the 
   content area.
 * It would be nice to see this as a dropdown option in the plugin in future! 😉
 *  Thread Starter [ZainB](https://wordpress.org/support/users/zainb/)
 * (@zainb)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/responsive-video-optionshortcode/#post-3520078)
 * Skip the hack. There’s another way, although it’s not obvious and isn’t properly
   outlined in the documentation!
 * Basically, it’s possible to add any “data-setting” attributes (e.g. `data-settings
   ="initial-overlay-enable:false; volume-enable:false; autoresize:fit"`), but you
   have to _drop the `"data-"` part off and add it to the shortcode._
 * So basically, in the shortcode, just add `settings="autoresize:fit"` to the shortcode.
 * e.g. `[sublimevideo poster="image.jpg" src1="videoSD.mp4" src2="(hd)videoHD.mp4"
   width="640" height="360" settings="autoresize:fit"]`
 * **Important:** If you also notice, additional settings can be added into the “
   data-settings” but you must separate them using semi-colons.
 * Hope that clears up some confusion for other plugin users. Also hope the documentation
   is updated slighty. 🙂
 *  [toddbenton](https://wordpress.org/support/users/toddbenton/)
 * (@toddbenton)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/responsive-video-optionshortcode/#post-3520272)
 * This was a big help to me. I looked at the documentation on Sublime’s website
   but it doesn’t say anything about the WordPress plugin and shortcodes. Thank 
   you.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Responsive Video Option/Shortcode?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sublimevideo-official.svg)
 * [SublimeVideo - HTML5 Video Player](https://wordpress.org/plugins/sublimevideo-official/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sublimevideo-official/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sublimevideo-official/)
 * [Active Topics](https://wordpress.org/support/plugin/sublimevideo-official/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sublimevideo-official/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sublimevideo-official/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [toddbenton](https://wordpress.org/support/users/toddbenton/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/responsive-video-optionshortcode/#post-3520272)
 * Status: resolved