Guest User

Untitled

a guest
Apr 24th, 2012
139
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