Build Online Store! | Penguin Panda Series - New! | 4 Rules To Make Money | SEO Settings | Facebook Popup 1, 2, 3 | Mashable 1 , 2


Tuesday, January 11, 2011

How to Customize Each Sidebar Header Differently?


Pin It

Customize-Sidebar After successfully customizing Blogger Comment Form and then the About me/Profile widget we have again got something really different this time. Few months back while looking at some word press templates I observed that some Sidebars had each sidebar headers with a different Look. I kept looking for a way through which this trick could be implemented in Blogger and just last week while editing my test bog I came across an interesting fact about Blogger Widgets. All widgets that I added on sidebars had a unique ID assigned to it by Blogger. I used this ID and tried if I could use it to customize the Sidebar Header and amazingly it worked wonders! With this ID I could customize any portion of the widget I wanted. So I am curious to share this brilliant trick with you. Today we will keep it simple. We will learn first on how to customize the Sidebar Headings and in our coming posts we will keep on doing more interesting things to today’s tut. So lets jump on to the tutorial..

 

First kindly view a demo to see how each sidebar headings have been customized differently,

Live Demo


How To Find out Unique ID Name of each Blogger Widget?

Simply follow these steps,

  1. Log into your Blogger Account
  2. And click the link that says  View your Blog
  3. At your Blog below each widget you will find this Edit key image,Blogger Edit-key
  4. Hover your mouse cursor on it and right Click and choose Copy Link Location
  5. The link will look something like this,

http://www.blogger.com/rearrange blogID=#####&widgetType=HTML&widgetId=HTML4&action=editWidget

Copy your Widget ID and keep it save as it will be used in the next part. In my case you can easily see that the widget Id is HTML4

HTML/JavaScript widgets are usually assigned such ID’s as HTML1, HTML2, HTML3 and so on.

About me widget will have an ID like Profile1 and Link lists widgets have Ids as LinkList1, LinkList2 etc.

The ID’s are case sensitive so use them as they appear.

How to Customize a Widget using its Unique ID?

Now here comes the interesting part. We will now customize the Widget’s Heading Style i.e H2 tag. Customization of other portions of the Widget will be shared in future posts.

  1. Go To Blogger > Design > Edit HTML
  2. Backup your template
  3. Search for ]]></b:skin>
  4. Paste the following code just above ]]></b:skin> ,

#ID h2{
background:#575656;
margin:10px 0 10px 0;
padding:8px 0 8px 10px;
font-size:12px;
font-family: Sans-serif, Arial, Helvetica;
font-weight:bold;
text-transform:uppercase;
color:#ffffff; text-shadow:0 1px 0 #fff;
}

 

Now replace ID with your unique widget ID. To change the background color change #575656 and to change the Font colour change #ffffff. May be you will like using our Colour Code Generator Tool

   5. Hit save and you are Done!

View your blog to see the new dress :)

That’s All!

Hope you find it useful and worth trying. More interesting CSS tricks on it will be shared soon InshAllah.

Note: Kindly respect Copyrights. Most of our tricks are being duplicated without attaching any credits and this really destroys our efforts. It’s a request from all our readers to respect the content of the original author.


If you enjoyed this post and wish to be informed whenever a new post is published, then make sure you Subscribe to our regular Email Updates!

If you don't want to get yourself into Serious Technical Trouble while editing your Blog Template then just sit back and relax and let us do the Job for you at a fairly reasonable cost. Submit your order details by Clicking Here »


Thanks for making this possible! Kindly Bookmark and Share it.
Technorati Digg This Stumble Facebook Twitter

20 comments:

Comment Page :
My World4Free on 9:48 AM, January 11, 2011 said... #

Thanks For Sharing

samsexy98 on 12:02 PM, January 11, 2011 said... #

Hi Mohammad
Very cool for bloggers who want a colorful blog..:)

Btw is the SEO Book that you are recommending really worth and do they help sites like mine...
I am because I have read some books which do not deal with my kind of site..:(

Thank You
Samsexy98

Digital Bunch on 2:33 PM, January 11, 2011 said... #

Great tricks for blogger users!

Mohammad Mustafa Ahmedzai on 3:17 PM, January 11, 2011 said... #

@Myworld4free
You are welcomed!

@Sam

Sam to learn something exceptional you will have to invest. The book is worth it.

@Digital Bunch
Pleasure pal

samsexy98 on 4:36 PM, January 11, 2011 said... #

@Mohammad
Thats what I am asking...

I mean is the book worth reading so that we can use it in our blogger interface which is HTML...???
And also will I be able to optimize my site with it...

I am asking specially for my site because I read some books which deals with same stuff like find keywords, this and that and don't know what else...
I really got fed up reading those same things in every book and none of them helped me to optimize my site...

They just say do this and that but HOW..??
This "HOW" doesn't leaves me alone :p

Adeel on 5:23 PM, January 11, 2011 said... #

Mohammad
u r the best. Thanks

007 on 9:06 AM, January 13, 2011 said... #

Amazing !!! no words for u r creativity.....hats off

Mohammad Mustafa Ahmedzai on 10:58 PM, January 14, 2011 said... #

@Sam

Then my coming posts on SEO are what you need. They will be specific to Blogger. I hope you will really like them

@Adeel
All praise is due to Allah :)

@007
Thanks brother. :)

samsexy98 on 11:43 PM, January 14, 2011 said... #

@Mohammad
I am eagerly waiting for them...
I would be really be helpful if I will be able to optimize a site like my niche..:)

ToTo Antonio on 9:17 PM, January 15, 2011 said... #

Hello Mohammad,

Your post are very helpful..Can't help but appreciate how brilliant you are. Now my page looks beautiful...

Mohammad Mustafa Ahmedzai on 10:04 PM, January 15, 2011 said... #

@ToTO

My pleasure. I am happy it worked for you. :>

vamsi@Hover pc Hacks on 3:45 PM, January 20, 2011 said... #

Hi Mohammad, your site rocks!!! I'm going to give it a try & thanks 4 the tips.

Mohammad Mustafa Ahmedzai on 12:36 PM, January 21, 2011 said... #

@vamsi

Oh thanks for the love. Peace be on ya :)

Nuevo Comienzo WC. on 9:55 PM, May 23, 2011 said... #

Wow!!!!, thank you, thank you and thank you. It herlp's me a lot.

Evan - King of hacKING on 9:45 PM, July 17, 2011 said... #

i Like all ur posts Mh. Plz post some more !

sunshine on 11:53 PM, August 26, 2011 said... #

Urgent!

A lot of your content is on http://shubhamtricks.blogspot.com/.

Are you associated with this website or allow for your content to be reproduced?

Author on 4:23 PM, October 10, 2011 said... #

Thanks for the great tips! Worked perfectly!

Krixie Dixie on 10:34 PM, January 03, 2012 said... #

can this also be used for the widget itself? :-)

Tharaka Devinda on 9:09 PM, February 08, 2012 said... #

Thank you mohomd :) Thank you Very MUCH :)

Joanne on 6:17 PM, April 06, 2012 said... #

Hello Mohammad, this tutorial was exactly what I was looking for! Thank you so much!

I do have a question though, what if I want to have a picture as background instead of colour and font? What should I do then?

Confused? Feel free to ask

Your feedback is always appreciated. We will try to reply to your queries as soon as time allows.

Note:
1. To add HTML CODE in comments then please use our HTML Encoder
2. You can always Test the tutorial on our HTML Editor
3. Please do not spam Spam comments will be deleted immediately upon our review.

Regards,
Mohammad

 

Recent Posts

Join Me On Facebook

8600+ Followers

Join The Team!

Licensed Under CC

Recent Comments

Follow Me On Twitter

2601+ Followers

My Blogger Tricks (MBT) © 2012. All Rights Reserved | Contact |