Blogger Talk blogging forums Need a Reliable Web Host? Click here! 
Blogger Talk
Blogger Talk
View topic - How to add a small sized youtube video to the sidebar



 Forum FAQ  •  Search  •   Statistics   •   Memberlist   •   Usergroups   •  Register  •  Profile  •  Log in to check your private messages   

BloggerTalk.net Forum Index » Blogging Newbies » How to add a small sized youtube video to the sidebar

Post new topic  Reply to topic
 How to add a small sized youtube video to the sidebar « View previous topic :: View next topic » 
Author Message
keeneye
PostPosted: Thu Jun 05, 2008 5:59 pm    Post subject: How to add a small sized youtube video to the sidebar Reply with quote

Primary member
Primary member

Joined: May 15, 2008
Posts: 37

I would like to know how to add a smaller video from youtube to feature on the sidebar so that it remains in view instead of posting in a post. I looked at the "add a page element" video bar option but it looks like you can only add youtube channels rather than just one particular video. If I add the html/java script option by grabbing the embedded code for the video it gives me a huge video overlapping my posts.

Any solution here icon_question.gif
_________________
Keen Eye Designs: Jewelry by Ashley
Back to top
View user's profile Send private message
Sponsored Ads
Rose
PostPosted: Thu Jun 05, 2008 9:29 pm    Post subject: Reply with quote

Site Administrator
Site Administrator

Joined: Sep 06, 2006
Posts: 1913
Location: Canada

You had the right idea to add it to an html/java widget. You just need to change the width and height of the video. You may need to play around with it until you get the correct size depending on your theme.
_________________
Help Support Blogger Talk Blogging Community|
Rose DesRochers - World Outside my Window
Back to top
View user's profile Send private message Visit poster's website
MrOldSkool
PostPosted: Mon Jun 09, 2008 5:38 am    Post subject: Reply with quote

Primary member
Primary member

Joined: May 13, 2008
Posts: 59

When you paste the code in edit this part height="344" width="425"

Just mess about till it fits O.K!!
_________________
http://retrotreasurehunt.blogspot.com/
Back to top
View user's profile Send private message
KirkM
PostPosted: Mon Jun 09, 2008 8:58 am    Post subject: Check width of sidebar in style.css Reply with quote

New Member
New Member

Joined: Sep 30, 2007
Posts: 9
Location: Vermont

A couple of things I found that you need to do when loading a video into the sidebar. First, find out the actual width of your sidebar and second, make sure you maintain the aspect ratio of the video itself so it doesn't end up looking squashed or stretched when you downsize it. It's easier than you think.

First, search through your "style.css" file of your theme to find the actual width of your sidebar. It will be in a block of code that includes something like this:

#sidebar {
width: 220px;
}


In this case you'd set the max width of your video to be no more than 210px. It's usually not a good idea to use the same max width as your sidebar. Might end up shoving your sidebar below the content in certain browsers (ask me how I know this).

Now I have to admit I cheat when it comes to maintaining the correct aspect ratio when downsizing the video. I simply bring up one of my imaging programs (Photofiltre 6.3.1 in this case) and load up a new blank image at the same original dimensions as the video I wish to downsize and use the image resizer function to reduce the width to what I want with the "Maintain aspect" check box checked so the width follows suit. That gives me the correct height and width to change in the video script:

So height="344" width="425" becomes height="170" width="210" which fits in my sidebar just fine and keeps the video looking like it should.

This plus the other suggestions should get you what you need.
_________________
Don´t die before your dead
Back to top
View user's profile Send private message Visit poster's website
Rose
PostPosted: Mon Jun 09, 2008 12:11 pm    Post subject: Reply with quote

Site Administrator
Site Administrator

Joined: Sep 06, 2006
Posts: 1913
Location: Canada

Hey, thanks Kirk. icon_wink.gif
_________________
Help Support Blogger Talk Blogging Community|
Rose DesRochers - World Outside my Window
Back to top
View user's profile Send private message Visit poster's website
KirkM
PostPosted: Mon Jun 09, 2008 12:21 pm    Post subject: Welcome Reply with quote

New Member
New Member

Joined: Sep 30, 2007
Posts: 9
Location: Vermont

icon_biggrin.gif
_________________
Don´t die before your dead
Back to top
View user's profile Send private message Visit poster's website
erikko
PostPosted: Mon Jun 09, 2008 10:57 pm    Post subject: Reply with quote

Junior Member
Junior Member

Joined: Oct 04, 2007
Posts: 124

i tried it before in my sidebar but it didn't work
_________________
hot actress asia travel spots music news
Back to top
View user's profile Send private message Visit poster's website
keeneye
PostPosted: Tue Jun 10, 2008 11:33 am    Post subject: Reply with quote

Primary member
Primary member

Joined: May 15, 2008
Posts: 37

I ended up using Photoshop to make sure I kept the sizing ratio by using image size to change the width and it automatically fills in the corresponding height to keep it proportional. So for my layout the sizes were 200 width and 162 (I rounded up to a whole #) for the height. The only problem with shrinking it down for me is that the YouTube logo doesn't shrink it stays regular size, but it's not so noticeable while watching the video.

Check it out on my blog if you want to see what it looks like!

Thanks for all of the input guys!
_________________
Keen Eye Designs: Jewelry by Ashley
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

BloggerTalk.net Forum Index » Blogging Newbies » How to add a small sized youtube video to the sidebar
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Design by Invision-Graphics | Powered by phpBB © 2006 phpBB Group
Loan | Mobile Phones | Mobile Phone deals | Loans | Debt Consolidation
BloggerTalk.net Statistics
 Today: 4,837  Yesterday: 25,802  Unique Hits: 19952  Total Hits: 7,292,773
Page Rendered in: 0.59s - Total Queries: 0 - MySQL DB: 119.2 mb's - Pages served in past 5 minutes: 21

BloggerTalk.net All rights reserved.
Unauthorized distribution, transmission or republication strictly prohibited.
Design by Invision-Graphics.com Proudly hosted by VisionThisHosting.com