StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-14-2009, 09:18 AM
tutorials's Avatar
tutorials tutorials is offline
Training
 
Join Date: Aug 2009
Location: cyberspace
Posts: 825
Default How to Add Video to Homepage/Sidebar Widgets...+V

Video Tutorial



Text Tutorial


For this example I'm using a YouTube video, however most video networks embed codes will work and there are plugins which will give you code for self hosted videos.

Step #1
Inside your WordPress dashboard, go to Appearance > Widgets and select the appropriate widget you want to use for your video.

Step #2
Add a text widget and drop your video code into the text box. Make sure you click the "Done" and "Save Changes" buttons to ensure the code is saved.

Here is an example of the video code that is used on the Corporate theme demo site:

Code:
<object width="425" height="344"><param wmode="transparent" name="movie" value="http://www.youtube.com/v/gO420B02Q84&hl=en&fs=1" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed wmode="transparent" src="http://www.youtube.com/v/gO420B02Q84&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>
Note:
You can get YouTube code that satisfies the HTML Validator and auto resizes through this tool.

Video CSS Styling:
There is CSS code that has been added to the stylesheet which will automically resize the video elements on the homepage/sidebar sections. To adjust that, here's the code you'd need to modify:

#homepage embed, #homepage object {
width: 280px;
height: 235px;
margin: 0px;
padding: 0px;
}

#sidebar .video embed, #sidebar .video object {
width: 250px;
height: 205px;
margin: 0px;
padding: 0px;
}
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Display a Video in Your Homepage Sidebar...+V tutorials General Discussion 1 10-14-2009 12:48 PM
Video to show on homepage then move to sidebar jayjacobs General Discussion 3 09-01-2009 11:10 AM
sidebar widgets on homepage pompress General Discussion 1 04-28-2009 06:08 PM
Placing a YouTube Video on Homepage (not in sidebar)??? mrrevolution General Discussion 2 02-05-2009 05:26 PM


All times are GMT -5. The time now is 03:52 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.