Post Title Customization - Blogger

December 2, 2008

How to customize your blogger Post Title...we can add some background picture behind the post title, or borders, change font.......................
..........................................................................well, a lot.
Before doing any customization, back up your template. Just in case....
Let's start with the beginning. Heh.

For customization, we will use the CSS style in the code section that corresponds to our Post Title:
.post h3 {
margin:.25em 0 0;
padding:0 0 4px;
font-size:140%;
font-weight:normal;
line-height:1.4em;
color:$titlecolor;
}
.....Attention:
  • this example is made in Minima Blogger default template, so your actual code may differ a bit
  • it's important to find the part ".post h3", or if you have custom template, the find the part that "carries" the style for your Post Title...
It's also important to know the width of your Post Title area, which is basically the same as your Post Content area ("main-wrapper" by default). This information, you'll find in this part of code:
#main-wrapper {
width: 410px;
...in orange, you can see the width, which is (in my case) 410px (pixels).

Attention again:
  • this is an example for Minima default template, your width can be different (or is)
  • "main-wrapper" represents Post Content area in Minima template, but yours can differ...(for example, the Post Content area in Rounders default template is called "#main-wrap1")
  • if you have custom template, you just have to find what part of the style (code) corresponds to your Post Content area...
Let's do something, already....

BACKGROUND PICTURE IN POST TITLE
To add a background picture behind our Post Title, we have to do 4 small things:

1. check the width of Post Title area (or Post Content area, or) -- like in example ABOVE
2. create (or find) a picture for our background, which will be the same width as Post Title / Content area......(you can make the width smaller, of course, but if you make it bigger, it will be "cropped")......you can choose height of the pic as you wish....
3. upload the picture to a free web host (Photobucket, Picasa, TinyPic....) to get the URL address
4. place the URL address in the code, so our pretty background can show up.....

....when you do the first 3 things, go to LAYOUT --> EDIT HTML --> and in the Post Title CSS style/code, add the some lines:
.post h3 {
background: url(URL OF HOSTED PICTURE); background-repeat:no-repeat;
height:55px;
margin:.25em 0 0;
padding:14px 40px 4px;
font-size:140%;
font-weight:normal;
line-height:1.4em;
color:$titlecolor;
}
....in orange, we've added some background settings, and our picture (you have to replace CAPS with the URL adress of your hosted picture)
....in blue, we've added the line which tells Blogger that our picture has a certain height...you'll change this value corresponding to the height of YOUR PIC
....in green, you have to adjust your Title to fit into picture, change the value (higher value--> pushes the title more down)
....and in pink you can "push" your Title to the right, increasing this value....

Taa- daaam! That's it......
  • be creative, you can do whatever you want.....
  • if you'll need any advice, just ask.....I'll help. Promise.

COLORS AND BORDERS IN THE POST TITLE
This is a much simple way of customizing Post Titles in Blogger. And you can create great effect with it, also......
Here's the example of using some border styles and some background color:
LAYOUT --> EDIT HTML --> locate the Post Title CSS style/code, and add the following lines:
.post h3 {
background:#9fddea;
border:1px inset #000000;
margin:.25em 0 0;
padding:0 5px 4px;
font-size:140%;
font-weight:normal;
line-height:1.4em;
color:$titlecolor;
}
....in orange, we've added some background color (you can choose any hex value you like)
....in green, we've choose a border "1px" thick, with color #000000 (black), and "inset" style....more about border styles here....
....in blue, we "pushed" our title a little bit to the right, so it's not to close to a border (higher value --> pushes more to the right)

....if you want your Post Title to be underlined....use this line:
border-bottom:1px solid #000000;
....of course, change the width, color and border style to whatever suits you....
....well, that's about it. If you are interested in some more customization of Post Titles, or you want something else, read the article about placing icons in Post Titles.....

Smile!


post signature
Face It! Tell Your Tweets Digg It! Add to Delicious Stumble Upon I Reddit! Mixx it Up! Add to Your Faves

80 comments:

Eira said...

thank you, this was extremely helpful!

pocket said...

:]

Stef said...

You are kind of a genius. :) I love your blog!!! The design is awesome and your tips are so detailed ... really really AWESOME.

pocket said...

C'mon....My cheeks are turning red.
Thanks....
Smile!

Sandra said...

This is great!

Thanks!

Radith Prawira said...

found a very similar post on http://mahbub-sumon.blogspot.com/2009/01/post-title-customization-blogger.html maybe u'd like to check it out,,

pocket said...

Hey Radith,
Thanks for the link. Seems like I have a CopyCat. I will report him, and actions will be taken...

I'm really grateful Radith...and I owe you one..

Smile!

Radith Prawira said...

Don't mention it, glad it help you like your posts help me ^^ i've sent comment to that blog's author but it seemed he didn't respond,

Not only this article i think i read a couple articles in his blog that seemed to be copied exactly like yours,, i hope you can crush those scrapper! ^^

And i read an article in mint-blogger that you can report those scrappers to adsense, here's the url : http://www.mintblogger.com/2009/01/how-to-knock-out-scrapper-in-2-easy.html ( just in case you haven't know yet )

Success..! ^_^

pocket said...

Radith,
You are golden! Will do that. And don't worry, I also have my own methods. Heh!

You have the biggest chocolate from me...

pocket

cleio said...

hey.. thanks 4 tutorial..
i c yr comment style so nice
can u gv me this code 4 bground comend like ur hv
i think so nice..

pocket said...

Hey cleio...
About the comments. Here's the tutorial:
Comment form

About your background picker. Wicked cool! Where did you get it?

Anonymous said...

Hi,

Thanks for the tutorial. I chose a different colour as my post title background. However, my posts are in individual boxes, and now there is a border between the post title and the box. How do I get rid of this border? Thanks :)

pocket said...

Well, it hard to say without seeing it, but normally, you just have to set the border style to 0px.

Anonymous said...

hi pocket, thanks for the quick reply :) i tried that but it didn't work, but i tried something you mentioned in another tutorial and adjusted the margins and it worked!

i think you're amazing, you are really good at explaining this stuff. would love to see a tutorial on collapsing/expanding navigation elements like you have on the bottom of your blog. thanks very much :)

pocket said...

I'm glad you did it...And tut on expand/collapse is coming...
Thanks for support!

Anonymous said...

Awesome, I can't wait!

Nicole O'Dell said...

i'm wondering if you'd mind helping me out a bit. I can't change the size of my post titles to save my life. I've adjusted everything I can find, but nothing changes the size.

This is my blog: www.nicoleodell.blogspot.com

Thanks in advance!

pocket said...

Nicole,

go to LAYOUT ► EDIT HTML, and locate this part:

.post h3 {
margin:.25em 0 0;
padding:0 0 4px;
font-size:78%;
font-weight:normal;

..change the font-size percentage....

If this is not working, then change the other percentage you have:

font: normal bold 57%....

..increase it, decrease it...
You have one style extra for the font size, so you can remove one of them....

pocket

vindiesel said...

thank you

kanchi said...

Hi pocket,
I was trying to change color and font of post title in my blog,I replaced in the code below,but still it is showing old color,in fact whatever changes I am doing(tried to put border and background color for post title)they are not reflecting can u plz explain why??

h3.posttitle {
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
font-weight: normal;
line-height:1.5em;
color: #6297BC;
padding: 5px 0 0px 0px;
margin-top: 3px;
margin-left: 2px;

pocket said...

kanchi,

this is happening because the color of your post title is a Link color. Under the h3.posttitle there should be something like: h3.posttitle a:..
Try to change the color settings there...
...

th!nkblue said...

I really love your blog!!!

I followed your instructions but i do not know why i can't even add a simple border line???

pocket said...

th!nkblue,

..what is your Blog address? Are you using a customized template?
:|

kanchi said...

thank u so much for reply
I changed color as u said above in the following code but still it is showing old color,what can i do??

h3.posttitle {
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
font-weight: normal;
line-height:1.5em;
color: #6297BC;
padding: 5px 0 0px 0px;
margin-top: 3px;
margin-left: 2px;
}
.posttitle a:link{
font-size: 22px;
color: #6297BC;
font-weight: bold;}

pocket said...

kanchi,

..also change the color of the visited link of the posttitle.
You've visited all the pages on your Blog, so what you see there, is really a visited post title color. Now, this is only a guess. This would be much easier if you share the Blog address, so I can see for myself...
You can email me if you prefer.
:|

FNE said...

I am having the same problem as Kanchi and I can't add a background color to my post title. I am totally clueless. You lost me when you started talking about changing the visited link color

FNE said...

Got another question for you. I keep increasing my title font% under post h3 but my post title stays the same. How can I get it bigger?

pocket said...

FNE,

..seems like your Post titles are wrapped in h2 heading style. And you are trying to define them with h3. Anyway, in LAYOUT ► EDIT HTML, lovcate all the:

.post h3 {

..and change them into:

.post h2 {

Now, see if there's any changes...
:|

th!nkblue said...

Ohhh i had the same problem as FNE and change h3 to h2 and YES! IT WORKS!!! Thank you so much! :D

kanchi said...

I have fixed the error
thank you so much
ur blog is very nice...............

FNE said...

Thank you so much for responding so quickly. You are truly a master! It worked perfectly!
Do you have any suggestions as to why I can't add a picture behind my Blog title and description?

pocket said...

Hm, you should be able to do this...Try like this. In LAYOUT ► EDIT HTML ► locate this part:

#header-wrapper {
width:1000px;
margin:0 auto 10px;
border:1px solid #666151;
}

..add a background picture, like so:

#header-wrapper {
background:url(PICTURE URL ADDRESS HERE);
height:200px;
width:1000px;
margin:0 auto 10px;
border:1px solid #666151;
}

► replace the CAPS in background line with your picture (Direct link from any free picture host site, like photobucket.com)
► adjust the height to suit your picture's height

...

FNE said...

I don't know what I am doing wrong. I have tried photobucket, tiny, and picasa and I still can't get my photo to show up.

FNE said...

Never mind! Got it to work. Thanx! Finally got my photobucket to work.

B34TZ said...

Hey, how do you change the actual Text FONT in the title?

Also is there a way to change the font to one that is not available in the standard blog layout (Arial, Verdana, Times etc.) ?

I find that these fonts are boring... Thanks!

pocket said...

B34TZ,

..locate this line in the LAYOUT ► EDIT HTML:

.post h3 {

...add the font family under it:

.post h3 {
font-family:arial;

...and I suggest to stick with the basic fonts (web safe). If you integrate some custom fonts, there's a chance that the people that don't have this font installed on their machine, won't see the title at all...
:|

Swashata said...

Mannnnnn I just love your Blog! :D
This is the code I have used!
.post h3 {
background: url(http://i362.photobucket.com/albums/oo61/swashata/blog/titleback-2.jpg) repeat;
height:55px;
margin:.25em 0 0;
border: 2px inset #767600;
-webkit-border-radius: 0.3em; /* for Safari */
-moz-border-radius: 0.3em; /* for Firefox */
padding:14px 40px 4px;
font-size:140%;
font-weight:normal;
line-height:1.4em;
color:white;
}

I would really like to share this code with you so that u can suggest me more improvement :)
Smile smile and smile :) B-)

knight of silent said...

hey there..how to change the post title to diff color?..

pocket said...

knight of silent,

..locate this line in LAYOUT ► EDIT HTML:

.post-title a {

...and change the color style under it...
:]

it.DP said...
This comment has been removed by the author.
it.DP said...
This comment has been removed by the author.
it.DP said...
This comment has been removed by the author.
it.DP said...

Hi, I've been following your blog for quite a while and it's been very useful for me.

I did everything as you described for adding an image behind the title, but there is a space between the title image and the post background that I can't seem to get rid of. Is there something I can edit to remove this space? It's visible in the test post of the link above.

A history of what I changed before doing this edit was adding a image separator between posts, and then adding a background color layer to the post template. I'm hoping to create boxes around my posts with rounded edges using the combination of the three.

Any help on this last edit would be great!

http://dollarprojectvancouver.blogspot.com/search/label/News?max-results=4

Rudy O. said...

This is really helpful! Awesome!
Thanks a bunch! :D

Kate Gabrielle said...

For some reason no matter how much I adjust this:
padding:40px 40px 4px;

my text on the title is way too far to the left of my image. I need to push it over to the right somehow.

(the site i'm working on is spiffydesign.blogspot.com.. any help is greatly appreciated.. even if I keep slaving over the site for the next 3 hours and finally figure it out :)

Jasper12.01u said...

This is really helpful thanks!
But how can you make the title of your blog post bigger?
And can you put in a border line to separate from one blog post to another?
Thanks again. :)

xull said...

Finally, a very nice, simple yet wonderful tutorial. I've searched lots of tutorial,but they are all not-so-interactive looking like this one.

nice work pocket! keep it up.

Kathy said...

This is so cool! I created an image of a piece of notebook paper with a staple to make my title looking like it was stapled to the page.

Very Cool - so glad I found this site.

Alicia said...

I love your blog but I have having an extremely difficult time changing my font size on my blog. I can't get any of it to change and I really want my post titles to be bigger and my text to be bigger. It looks like I have a highly customized layout but I don't, I did it all from free layouts and they aren't even in my edit html part. Please help me. I have read about 15 how to's and I don't know what I'm doing wrong.

http://pennyprincess-alicia.blogspot.com/

Edo said...

your blog is soooooooooo useful to me... now i can customize my blog easier...thank you very much!! but how your comments are different from guests' comments? how do you do that? thank you!Gbu

DayDreamer said...

Hi, I moved my post title to the middle, but how can i move the date also to the middle?

adam hassan said...

thanks a lot!

1LuvnMama said...

I enjoy reading your "How To's" since I'm a new blogger. Trying to customize my site to be all my own. Have a question, how can I change the font in my post title to a fancy, customize font instead of the ones preset for blogspot? I hope to hear back from you soon or you can even make another "How To" on this topic. ;o)

<b>A L A R A</b> said...

I'd really like to know how to center the post title like this

studdedhearts.blogspot.com

ive been trying for ages but i just cant figure it out!

LaRae Lobdell said...

Thank you for sharing how to customize and place a background picture for post titles, you're wonderful!

Nikki Beukes said...

Great help! love the background for post title tip, just wondered how do you get background colour to stop where sentence stops rather than blocking? My blog is www.lotswithstyle.blogspot.com and i would like post title background to appear as on here http://shunews.shudoo.co.uk/
HELP!!! THANKS!!

Alex said...

Thank you so much for the help! The instructions were great and easy to follow. Good job!

BunnyBliss™ said...

You are such a lifesaver. :)) Thanks SO much for this post! It was so helpful for anti-coding noobs like moi. XD


http://onegoldenafternoon.blogspot.com

KAMEHA said...

This is great tuto :) Thanks

http://bigtos.blogspot.com

cuaryos said...

goodies work, i love this blog. your template looking pretty with cool color black and orange.
thank a lot..

http://cuaryos.blogspot.com

Anshul Pandey said...

Thanks....

http://thebigvalue.blogspot.com

Missie said...

How do you customize the Font on a Title Post?

The World of Knowledge said...

Hello Pocket. How can I change my post title font to comic and make it underline when the cursor touch the title. I hope you help me. Please do help me.

Thank you
doTZ.

lele2030 said...

Hi nice to meet you,
I have a question has to ask you even I couldn't solve the problem.
My blogger dun hv the post tittle,can u guide me how to solve?It's really killing me,and the templates I used was from Blogskins.

Fakhira said...

Could you make three rows Blogspot title .. for example

this is a bad title

be

this is
a bad
title

Anonymous said...

Hey is there any way that that the background colour of the post title can be limited to the length of the post title text?

Karen said...

What a great site! I've been on the net for days looking for skins and help, and yours is simply the best--kudos for a job well done.

ARC™ said...
This comment has been removed by the author.
ARC™ said...

no .post h3 :(

ucuppello said...

thanks' check my blog http://ucuppello.blogspot.com/

nickname ? faa said...

i swear i can't do it -.-" errghhhhhhhhh ><

pakdoe said...

help me design my blog like yours...hmmm cute...http://allanpakdoe.blogspot.com/

Prince Arnold said...

I NEED SOOOO MUCH HELP, lol pretty please.

i'm trying to change the line height of my title posts and make the title post background black, similar to my widgets on the site.

-A friend in dire need of help

My link:
http://www.redd-head.com/

illyz said...

great info...i like this tutorial.thx for sharing..i will try it now

Freshers Live said...

Great Blog…I am soo glad I stumbled upon this site.

http://fresherslive.blogspot.com/
http://sarkarjobnow.blogspot.com/

Mandy:) said...

How do I do the same thing for date? i want to center my date and put a background to it, how?

please help
thanks

ps: love your blog, learned a lot of geeky stuff from itXD

shima said...

Hye there,

I also need help from you becouse it seems that i can't really do as what you've mention. Pleaseee.

i'm trying to change the background for my post title. To have some colour on it.

If you can help me that would be great. Thanks!

My link:
http://mentheboyz.blogspot.com/

حمادة حسن اللق said...

thank you.
i have a question
can i make the post title on single pages more longer or more detailed than the post title on home page?
e.g.

in my blog btemplates4a hompage the post title is short, can i make the internal title more detailed?
please check premiumbloggertemplates.com (home and single pages).

one more question please
if my posts carry titles like :
xxx blogger templates
xxx blogger templates ...etc

is this against google adsense?
thank you so much

Shalu Sharma said...

Thanks for this information.

John said...

Tutorial that actually works. Thanks :)

Say it...

Related Posts with Thumbnails