This forum is in permanent archive mode. Our new active community can be found here.

Separating blog design from content

edited January 2009 in Technology
On my blog, I currently insert all the code Youtube gives me which picks the layout, design and options of the embedded video. What I want to do is put just the video reference number (i.e. VG9KepdWmZc) into the post and have Wordpress handle the video code so that I can go back and change all the videos on my blog at the same time, for instance: If I change my blog's theme and want to make them all match. I'd also like to do the same thing with images.

So, how?

Comments

  • edited January 2009
    Write a WordPress plugin and template tag for youtube videos.
    Post edited by Apreche on
  • edited January 2009
    Write Find a WordPress plugin and template tag for youtube videos.
    Good idea.
    Post edited by Omnutia on
  • I think this is what I used to use.
  • I thinkthisis what I used to use.
    Give that man a banana.
  • And here I thought you sought help with CSS. Don't just copy blindly the code Youtube gives you if you want to change its width and height on a later date. Remove those attributes, replace it with a class="video" and voila, you are done. That is the (little) design that you can separate from the content, what else would you want to rip out of the tag?

    Unless you actually care about changing the colour of the player.
Sign In or Register to comment.