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:margin:.25em 0 0;
padding:0 0 4px;
font-size:140%;
font-weight:normal;
line-height:1.4em;
color:$titlecolor;
}
- 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...
#main-wrapper {
width: 410px;
...in orange, you can see the width, which is (in my case) 410px (pixels).width: 410px;
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...
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)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 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)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 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!















80 comments:
thank you, this was extremely helpful!
:]
You are kind of a genius. :) I love your blog!!! The design is awesome and your tips are so detailed ... really really AWESOME.
C'mon....My cheeks are turning red.
Thanks....
Smile!
This is great!
Thanks!
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,,
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!
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..! ^_^
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
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..
Hey cleio...
About the comments. Here's the tutorial:
Comment form
About your background picker. Wicked cool! Where did you get it?
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 :)
Well, it hard to say without seeing it, but normally, you just have to set the border style to 0px.
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 :)
I'm glad you did it...And tut on expand/collapse is coming...
Thanks for support!
Awesome, I can't wait!
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!
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
thank you
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;
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...
...
I really love your blog!!!
I followed your instructions but i do not know why i can't even add a simple border line???
th!nkblue,
..what is your Blog address? Are you using a customized template?
:|
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;}
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.
:|
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
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?
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...
:|
Ohhh i had the same problem as FNE and change h3 to h2 and YES! IT WORKS!!! Thank you so much! :D
I have fixed the error
thank you so much
ur blog is very nice...............
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?
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
...
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.
Never mind! Got it to work. Thanx! Finally got my photobucket to work.
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!
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...
:|
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-)
hey there..how to change the post title to diff color?..
knight of silent,
..locate this line in LAYOUT ► EDIT HTML:
.post-title a {
...and change the color style under it...
:]
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
This is really helpful! Awesome!
Thanks a bunch! :D
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 :)
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. :)
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.
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.
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/
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
Hi, I moved my post title to the middle, but how can i move the date also to the middle?
thanks a lot!
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)
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!
Thank you for sharing how to customize and place a background picture for post titles, you're wonderful!
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!!
Thank you so much for the help! The instructions were great and easy to follow. Good job!
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
This is great tuto :) Thanks
http://bigtos.blogspot.com
goodies work, i love this blog. your template looking pretty with cool color black and orange.
thank a lot..
http://cuaryos.blogspot.com
Thanks....
http://thebigvalue.blogspot.com
How do you customize the Font on a Title Post?
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.
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.
Could you make three rows Blogspot title .. for example
this is a bad title
be
this is
a bad
title
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?
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.
no .post h3 :(
thanks' check my blog http://ucuppello.blogspot.com/
i swear i can't do it -.-" errghhhhhhhhh ><
help me design my blog like yours...hmmm cute...http://allanpakdoe.blogspot.com/
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/
great info...i like this tutorial.thx for sharing..i will try it now
Great Blog…I am soo glad I stumbled upon this site.
http://fresherslive.blogspot.com/
http://sarkarjobnow.blogspot.com/
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
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/
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
Thanks for this information.
Tutorial that actually works. Thanks :)
Say it...