Advertisement
Guest User

Untitled

a guest
Apr 24th, 2012
432
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  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]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement