March 14, 2010
Well, this is interesting. We've already learned to tweak and stylize our Blogger widgets (gadgets), in general. For example adding icon beside sidebar title heading and placing icon or image beside Labels and Links. That's cool. But now, we'll learn how to tweak and style each widget (gadget) differently! Meaning:
► each of your widgets (Labels, Archive, Links, custom widget) can have it's own looks (color, font, borders, images....anything!)
► remember that WIDGET is the same thing as GADGET
Ok, here's the simple example:
I've chosen to differ my widgets a bit, so I changed a the style of Labels, Links, Archive and Picture widget. I choose these widgets just for this example. Remember that you can do this with every other widget too!
There are a few simple steps you'll have to take:
► choose which widget you'd like to style, and identify it in Blogger HTML code
► add some CSS style in the code that will spice up our widget
► don't lose your marbles (be patient and creative)
Choosing and Identifying
Each widget added in Blogger Layout has a unique ID. We will use this ID to apply some style to our widget. So, our job is to dive into the Blogger HTML code, and locate these ID's. Let's go. From your Dashboard, go to:
LAYOUT ► EDIT HTML ► and scroll all the way to the bottom. Because I choose to style my Sidebar widgets (gadgets), I'll look inside of sidebar-wrapper. In my case, the code looks like this:
<div id='sidebar-wrapper'>
<b:section class='sidebar' id='sidebar' preferred='yes'>
<b:widget id='Label1' locked='false' title='Labels' type='Label'/>
<b:widget id='LinkList1' locked='false' title='Links' type='LinkList'/>
<b:widget id='Image1' locked='false' title='My Picture' type='Image'/>
<b:widget id='BlogArchive2' locked='false' title='Blog Archive' type='BlogArchive'/>
</b:section>
</div>
Ok. You can see the ID's of my widgets:<b:section class='sidebar' id='sidebar' preferred='yes'>
<b:widget id='Label1' locked='false' title='Labels' type='Label'/>
<b:widget id='LinkList1' locked='false' title='Links' type='LinkList'/>
<b:widget id='Image1' locked='false' title='My Picture' type='Image'/>
<b:widget id='BlogArchive2' locked='false' title='Blog Archive' type='BlogArchive'/>
</b:section>
</div>
Label widget ID ► Label1
Links widget ID ► LinkList1
Picture widget ID ► Image1
Archive widget ID ► BlogArchive2
Sometimes, if you have a lot of custom widgets, it's hard to guess it's ID. In this case, just remember that their position is the same as they appear in your Blog frontpage. If the Labels widget is in the 1st place, it will be in the 1st place in the code too..
First step is done. Let's move on.
Styling and tweaking
Now, the fun part. To style the widget, you'll have to know a bit of CSS. But don't worry, you can get this in minutes. In previous step , we've learned to identify the ID of our widget. Now, we'll use it. Let's start with customizing the Link List widget. From Blogger Dashboard, we'll go to:
LAYOUT ► EDIT HTML ► and locate this part (for easier searching, use CTRL + F, and type "/head"):
]]></b:skin>
</head>
ABOVE this part, you'll place the CSS style for your custom Link List Widget (gadget), so the whole thing will look like this:</head>
#LinkList1 {
background:#FFF4BF;
padding-left:15px;
font:14px Arial;
border-bottom:2px solid #FFE25F;
}
#LinkList1 h2 {
background: url(http://i40.tinypic.com/wummhj.jpg) no-repeat bottom left;
height:35px;
padding-top:10px;
font-size:0px;
}
#LinkList1 a:link {
color:#5F5F5F;
text-decoration:none;
}
#LinkList1 a:visited {
color:#5F5F5F;
text-decoration:none;
}
#LinkList1 a:hover {
color:$titlecolor;
text-decoration:underline;
}
]]></b:skin>
</head>
]]></b:skin>
</head>
The part in blue is the style for the specific widget box (in this case Link List). You can change background, font style, position, colors, borders of the widget.
Green part is defining only the HEADING of the widget. In my example, I've placed a picture instead of regular text, and with the "font-size:0px" the original heading is hidden. Pretty cool. This way, you can have different heading for each widget in your Blogger template!
In orange, I've defined how my LINK and HOVER colors will look like. I had to do this because the background of my new widget style was blending with original default link color. Now you know that you can use different colors for your links in every widget!
Here is the complete code with Labels and Picture widget (for my example):
View the code here.
#Label1 {
background: #DFF7FF;
padding-left:15px;
font:14px Arial;
border-bottom:2px solid #45B7DF;
}
#Label1 h2 {
background: url(http://i40.tinypic.com/12644z4.jpg) no-repeat bottom left;
height:35px;
padding-top:10px;
margin-bottom:5px;
font-size:0px;
}
#LinkList1 {
background:#FFF4BF;
padding-left:15px;
font:14px Arial;
border-bottom:2px solid #FFE25F;
}
#LinkList1 h2 {
background: url(http://i40.tinypic.com/wummhj.jpg) no-repeat bottom left;
height:35px;
padding-top:10px;
font-size:0px;
}
#LinkList1 a:link {
color:#5F5F5F;
text-decoration:none;
}
#LinkList1 a:visited {
color:#5F5F5F;
text-decoration:none;
}
#LinkList1 a:hover {
color:$titlecolor;
text-decoration:underline;
}
#Image1 {
background:#FFDFFE;
padding-left:15px;
font:14px Arial;
border-bottom:2px solid #FFAFFD;
}
#Image1 h2 {
background: url(http://i44.tinypic.com/qywqog.jpg) no-repeat bottom left;
height:35px;
padding-top:10px;
font-size:0px;
}
#Image1 img {
border-width:0px;
padding-left:25px;
}
]]></b:skin>
</head>
background: #DFF7FF;
padding-left:15px;
font:14px Arial;
border-bottom:2px solid #45B7DF;
}
#Label1 h2 {
background: url(http://i40.tinypic.com/12644z4.jpg) no-repeat bottom left;
height:35px;
padding-top:10px;
margin-bottom:5px;
font-size:0px;
}
#LinkList1 {
background:#FFF4BF;
padding-left:15px;
font:14px Arial;
border-bottom:2px solid #FFE25F;
}
#LinkList1 h2 {
background: url(http://i40.tinypic.com/wummhj.jpg) no-repeat bottom left;
height:35px;
padding-top:10px;
font-size:0px;
}
#LinkList1 a:link {
color:#5F5F5F;
text-decoration:none;
}
#LinkList1 a:visited {
color:#5F5F5F;
text-decoration:none;
}
#LinkList1 a:hover {
color:$titlecolor;
text-decoration:underline;
}
#Image1 {
background:#FFDFFE;
padding-left:15px;
font:14px Arial;
border-bottom:2px solid #FFAFFD;
}
#Image1 h2 {
background: url(http://i44.tinypic.com/qywqog.jpg) no-repeat bottom left;
height:35px;
padding-top:10px;
font-size:0px;
}
#Image1 img {
border-width:0px;
padding-left:25px;
}
]]></b:skin>
</head>
Ok, I think you've got it. Remember, this was just an example. You can do a lot more. The only important thing is to remember that you have to IDENTIFY your widget, and STYLE it through your Blogger code.
A little patience and a few cookies, and you're there.....
Smile!

















107 comments:
Pocket, you're back! Hooray! We missed you. :)
Another Rocking post Pocket
we missed you a lot :)
can can u make a Tutorial for customizing comments with avatar.
@Dhawal
Do you want to customize comments with CSS avatar? I have a trick and tutorial for it. Just go ahead:
http://hacktutors.blogspot.com/2009/12/arrange-your-comments-avatar-with-css.html
Hopeit will help you :) Thanks!
Hey everybody...
Yup. I'm here again. Somewhere. And will stay.
Thanks for support...
Smile!
Long time, Pocket. Hope all is well.
Umm....pocket, I can't see pager link on your blog in my firefox browser. I think it is a firefox bug. But, I have already solved it. Days before my blog has same problem. Exactly, solved it. See the trick in my blog or you can contact with me.
Thanks!
Forget to say:
Pocket,
How do you customize this comments in separate ways? I can see your all comments are in the bubbles. Is there any idea?
Anup,
I removed my pager links....On purpose.
About the comments. I'll explain in the tutorial.
Smile!
Hi Pocket!
Many many thanks again for this Tutorial! I'll try to Change the Widget Tomorrow...
All the Best
stephie (o;
Hey!! I was wondering where you've been!! Glad you are well and back in the swing of things!!
Tiffany from www.TiffanysGarden.com Thanks for all your help!!
Welcome back pocket. I am really missing you. Thanks for this nice tutorial.
It's great i love love your site!
also encourage me for my blogs,
http://ibloglab.blogspot.com
http://itechnolab.blogspot.com
Hey, you're back!
Hi Pocket,
many thanks again... I just tried it out too put individual images above every post and everything worked fantastic!
Many thanks again!
Thanks for sharing. thats a cool one
Love this! One question...I have two gadgets that I would like to hide on my static pages, is there a way to do that?
BTW, I found my answer. Yay!
Hi Pocket... Hope you remember be :) Its been a year you posted and I really remember those days, when I just started blogging and your blog really helped me a lot learning designing... Looking forward for more of your articles... :)
Btw, we have bought a domain www.intechgrity.com and have designed it from scratch :) Plz do tell me how u like the design and give ur precious suggestions :)
Hello there,
Thank you for all the great stuff. I have a little problem though with my linklist customization. It was working perfectly until a few hours ago. I didn't change anything on the code but I've noticed thet my navbar frame, quick edit links and atomsubscribe appeared although I had them hidden with codes.In addition my linklist customization stopped working as well!! Has this something to do with Blogger???
Just found out that this doesn't work only in Mozzila. Can we fix that please?
Hi Pocket. I liked all the articles you have. especially with the Quick response(feels like on your forum). I have a problem with the sidebar which I wanted my side bar and post body have same height as you have. I've visited several blogs related to my sidebar. delighted if you could help ...smile !! before you give me smile too
Num entendi nada pow,tava tentando aki,li essa post sua mais num entendi nada...
Thanks for the awesome tip! I like it
nice to meet you...
great blog...
salam bandung blogger!!! huehueheuheuhue :P
Hello Pocket, I'm Annalisa and I'm writing from Italy. I need a bit of help: I like so much the grey template here http://pocket-number13c.blogspot.com/. But I'd like remove the third column right for my personal blog so I can enlarge the body post. Is that possible? and How I can made it?
Thank you for courtesy.
Hey Annalisa...
No problem. Just Email me on this address:
pocket.ideas AT gmail.com
I'll send you the file as soon as I can....
Smile!
Hey everybody...nice thanks wating for ur new post....
thxxxxxxxx
ya´tá giro xD
i've just used this new template. but when i write new posting actually in the tittle place. it've been changed into hindi. i'm Idonesian.
tell me what happen with it.
can't work properly in html id widget
I can't find the part of the code in my new layout, blogger gave us :)
i cant get it properly
Pocket you're back!!! Nice to see you again :D
I want to make my homepage link non clickable on homepage at my blog http://www.taxbharat.org
kindly help.
thanks nice topic
Hey Pocket..
I'm just starting out with designing my new blog on your blog is really helping me out.
anyway, I'm trying to put a picture instead of the widget header - like you showed here but I can't.
In some of the widgets it adds a wierd black line and in others it doesn't show the picture.
the code I used:
#Profile1 {
padding: 0 0 10px 15px;
}
#Profile1 h2 {
background: url(http://i847.photobucket.com/albums/ab36/wtw-tv/profile-head.jpg) no-repeat bottom left;
height:28px;
padding-top:10px;
font-size:0px;
}
#Label1 {
padding: 0 10px 10px 20px;
}
#Label1 h2 {
background: url(http://s847.photobucket.com/albums/ab36/wtw-tv/?action=view¤t=labels-head.jpg) no-repeat bottom left;
height:28px;
padding-top:10px;
font-size:0px;
}
My Blog:
http://wtw-tv.blogspot.com/
I would appreciate anyones help.
Thanks.. :)
I'm just leaving this comment to tell you how gratefull I am, I think I used all your tutorials to re-invente my blog, even though my english is not fluent it was easy to understand so thank you so much for such a great work.
http://the-liquor-store.blogspot.com/
ps: I am smiling :D
Are you always vexed about wearing what kind of dress at a banquet?
Herve Leger bandage dress online store eliminates your worries.
kindly, tell me where I shud place code of a widget so that it shows up on the sidebar. Kayhill_88@yahoo.com
Thanks for the amazing info. I am back in your blog:)
Regards,
HackTutors
Cool!!~~
I love your blog..~
Anyway, thank you so0ooooo much!~ :)
How do I resize the header itself?
I'd like to shorten the header's size
(it's height), it's too tall and takes up too much room on the top of the page.
I'm using the "Simple" template.
Thanks So Much!
thank q for shared
http://jualanterkini.blogspot.com
I don't know where I can post this question but I'm sure others have the same too.
How do you link: http://www.blogbulk.com/search/label/XML%20Blogger%20Templates
to the tab on top. I tried to do the same but it doesn't work.
The tabs on top of my page are 'Home' 'Posts RSS' 'Comments RSS'. When I change it I get a error message.
Just what i needed!Thanks for sharing :)
Thanks for the amazing info. I am back in your blog:
http://yenimoda.blogspot.com/
Just what I was looking for, forgot how to do it...thankfully there is wizards like u in this world to make it easy for me :)
great sharing for making a good landing pages and it will boost very well thinks so
I hope someone could help mi on my blog.
It doesn't work no matter how many times I'm trying.
Not even this, It couldn't work when I'm trying to add a icon beside my sidebar title, add picture on my sidebar and lots! help!
here's my blog
hanachuki-babe.blogspot.com
i would love to follow your guides if given ample time. . .have been busy in school. oh by the way i have included your site in my favorite site at my blog. . . here's my blog Eagle eyes I have also an on-going campaign in making a better world for the disabled persons. . i hope, you and everyone's gonna support it. .
Excellent will see if I can incorporate it.
thanks for sharing
gracias :=)
Mujer nalgona
Thanks Pocket, your information really works....
Arvind.
visit my blog please, your can read my poems and short stories by translations
http://arvindjangid.blogspot.com/
Thanks again.
Your blog is THE BOMB!!! I've been creeping to your blog for over three months now and finally decided to follow you because of the simple fact that your tips GOT ME OVER 100 FOLLOWERS IN A MONTH! JUST BY LOOK ALONE! Looks do matter, when it comes to blogs anyway ;)
You should so keep it up! Plus, if you made videos too that would help us all even more. Your blog is perfect already!!
ImgsFree : thanks :)
Genious. Yours was the first blog for "bloggers" I've encountered... and after a couple of months here I am again. Thanks so much!
That's Cool.. I've tried it.. you can see at http://music-and-lesson-center.blogspot.com/...
ehehehe.. thanks for it..
pocket...how to make round widget 4 all corner...and how to make the background title widget is different withe the background of widget content,..ttq
its works for me, thanks friend
http://www.bloggertrix.com/
I used the 'page elements' to 'add a gadget' selected 'picture' and chose a file to upload. The image is huge and needs to be re-sized. Ive identified it as "widget id='Image1'" I then changed the HTML to read
#Image1 { height:50px; }
just before the b : skin line as directed
It seems to make the entire page behave as if there were a widget with a height of 50px as there is less space being taken up by this widget now, However, the image remains Huge but merely is behind other page elements (except for the top 50px of the image)
Any idea? again Im looking to shrink this huge image, maybe height:50px is not the code I need? Btw I realize 50px is ridiculously small I just chose that for now until I get something to respond.
Thanks for any help,
Zalxder
Zalxder,
you've done good, but I suggest to format your pic on your comp using some software, or do this online (there are lots of free tools), and then upload it into your widget...
Just check the width of the sidebar in your code..
Smile!
pocket,
Oi, well its easy to do that, but I don't get this CSS, Back with html it would have been easy to change the size on the page yet keep the high resolution of the file encase some one wanted to save it.
thanks for your great tutorials - some of which I have applied such as putting each post in it's own box - however, I have a complicated (I think!) sidebar arrangement, and tried the above on one widget, but it didn't work. can you help? there are actually 2 side bars, one under the other, I want to separate each widget from sidebar1 to be in it's on box of that colour and everything from sidebar2 to be in a separate box of it's own colour.
I'd appreciate any help you can give - thanks!
Rachel
Love you great tips, i am trying now.
Awesome!! Thanks for your help!
good job, i'll use to my blog
All cliches in one move!Thanks for this wealth of resources!
Brother HL 1430 driver
Thank you for sharing with good, helpful, useful info. If you are seeking for cheap insurance quotes, it must to know that when you get cheap home insurance, you save much more on rates from home insurers.
Thank you for great links. It was easy to read, but I'd like to add that if your company needs to be updated try windows mobile development.
Thank you for your analysis and sharing, from your article I learned more.NFL Adjustable Hats
Link Exchange is excellent way to boost your traffic.
If you want to get some extra backlinks link exchange is a great way to do so.
Submit your website now and Increase your website traffic and Also Get Free Traffic stats in details
http://webstats.apnipie.com/
WOW UR BACK pocket
cool pocket you are back
Thanks for providing such a useful information about Widget.
I admire the valuable information you offer in your articles. I will bookmark your blog and have my friends check up here often. I am quite sure they will learn lots of new stuff here than anybody else!
People don't leave because things are hard. People do leave because it's no longer worth it.
__________________________________________
Tera Items
cheapest wow gold
Tera Gold
Cheap Tera Gold
Runescape Gold
lotro gold
Bookmarked your awesome blog. Very useful!
This article is very nice.This blogs showed how to make
style in our webpage.Thanks for analysis and sharing.
Love you man.................i love designing but because i am new to XML so i was facing problems customizing individual widgets.
thanks once again. Don't forget to visit my blog, it ios about blogger widgets, templates and SEO tips.
http://bloggeranalytics.blogspot.com
Well,OK.I have to say,what a wonderful blog it is.thank you for your sharing so good articles in the website.I like it very much.
voce poderia colocar alguns tutoriais em portugues para outrs pessoas poderem ver o tutorial tambem!!!
Great blog
Moncler Jackets is a way for the China under But Adrienne. Where the liner to use? When choosing a winter Moncler Jackets Men for men, it is important to consider all situations in which wearing the jacket moncler-jackets-ca.com.
A place that is warm or hot most of the time, you could not wait to grow Moncler Outlet brand recognition than it is now.Will it be a goal of all? If you intend to use in both casual and a situation of a site is likely to be robust and presentable. For extreme winter sports, other factors must be considered as freedom of movement and air moncler-jackets-ca.com.
This may seem obvious, but for some it is not always so easy. The winter coat right to sub-arctic conditions in some parts of Canada and Alaska would be totally inappropriate for much milder winters in the southern U.S. and Mediterranean countries in Europe, for example moncler-jackets-ca.com.
Moncler Canada has been in China, But Adrienne, the daughter of Joyce Ma. Moncler Coats were sold as soon as the first store was opened, to demonstrate almost cult status Moncler Coats Fashion moncler-jackets-ca.com.
There are certainly other famous brands industry.these Moncler Spring & Autumn with five big brands in China are the first level of judging the quality and style. What consumers need to have a down Moncler Cap & Scarf has a light, to keep warm and fashionable. Enough. I'm sure that what I have written is useful to you. So remember, next time you want to buy quilts, buy genuine.
Other Fashion Moncler vest would be famous moncler-jackets-ca.com.
FANTASTIC BLOG!!!!!!!!!!!!!!!!!!!!!!:D
http://jula-locanina.blogspot.com/
That is nice article. Let me mention about homeowners insurance that are from homeowners insurance providers. Compare online quotes on homeowners insurance.
Thanks for sharing with us this useful review. You have nice possibility to get info about online affiliate program. The best gaming programs such as betfair casino and great poker rooms such as party poker affiliate program.
Just wanna say, you are awesome, I love you. That is all :D
We're glad to know more and read this info. I'm happy to share with instant insurance quotes that is supported by common insurance companies. You may save on homeowners insurance which allow you to apply for affordable cheap policy.
umm, wanna ask a completely non-related-to-this question, it's still about blogger tho:)
the question is - how do they make the date like that?
-> http://etoile-sisters.blogspot.com/
i searched and search, but everyone said they can only help me change the background colour:(
please and thank you^.^
thank you.
thank you,this post is just wonderful.
buy wow gold
cheap wow gold
latest free browsing cheats for december 2011.
thanks for this great post.
thanks for this great post.i'm really happy.i did this in my blog and it's working.check it out here.entertainmentgistme.blogspot.com
thanks,i'm really happy to see this.
Pocket, you're amazing! I love your tutorials.
Create a blog for sharing useful information all over the world and if you want to create a blog than u blog is the best option for you.
This is really an intersting blog. Thanks for sharing with us.... Print Design Wien
Thanks,i certainly love this,now,you can easily get hostgator coupon codes,namecheap coupon codes,godaddy coupon codes at this websiteGet your hosting company coupon codes here
Cheap Domain News:
As Hostgator Provide 50% Off On All Hosting Plans.
Nice blog that you have and good writing, continue and keep up a good work, sesekali boleh lepak kat blog saya korean fashion have a nice day...
This is a good common sense article. Very helpful to one who is just finding the resources about this part. It will certainly help educate me.
Great Tutorial. Thanks. It's really helpful, Going to share with my FaceBook friends. Thanks
English Song Lyrics
Eset-Username-update
Cheap Lawyer Attorney
Nice post.Thanks a lot
Visit here for some blogging help
Very helpful post.Thanks for sharing.
Visit me please
very useful.. thanks for sharing information..
Thank you!!!!! :)
Thank's for share this info...
great post..
Say it...