Guest User

Untitled

a guest
Apr 24th, 2012
165
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Passing a small # shortcode [video] to # wordpress for all his videos responsive with the # css link above (http://webdesignerwall.com/tutorials/css-elastic-videos).
  2. In the functions.php file add:
  3.  
  4. caption_shortcode function ($ atts, $ content = null) {
  5. return '<div class="container-video">'. $ content. '</ div>';
  6. }
  7. add_shortcode ('video', 'caption_shortcode');
  8.  
  9.  
  10.  
  11. And after in the articles or posts surrounded the code from youtube without <iframe> width = "#" height = "#".
  12.  
  13. example
  14.  
  15. [video] <iframe src="http://www.youtube.com/embed/hOvGCrilWik" frameborder="0" allowfullscreen> </ iframe> [/ video]
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×