Just open the Template tab -> Edit HTML button.
Then find (Ctrl + f) the following code:
]]></b:skin>and REPLACE it with the following one:
h3.post-title { text-align:center; }
]]></b:skin>Click the PREVIEW button and you'll see that the post title is now centered. After that save your template and enjoy :)
Help BetaTemplates!
You can help betatemplates.com by adding a link anywhere on your blog. The link code is available from the bottom of this page.
Is there a way to apply this to an individual post; not to all of the posts.
ReplyDeletethx
regards
raymond
@ RayPlay, yes that can be done.
ReplyDeletehow, since the post title on my blog doesn't take any html
ReplyDelete@ RayPlay, we can apply if-else condition in Blogger HTML. That can be done by going to Design -> Edit HTML.
ReplyDeleteWhen writing/posting a new blog and I want to centre the post title just for that one new blog. Then the edit HTML is only possible for the text in the post itself. It is not possible to write HTML in the post title. If I write HTML in the post title, the HTML text will be displayed as text in the post title.
ReplyDeleteThe Design -> Edit HTML applies to all the posts while I want it to be just for one post.
PS: I am a HTML dodo, as you may have guessed by now.
Thank you
hello,how about using worpress template ?
ReplyDeleteplz..it doesn't work
@ Ummi Hanie, I don't have much experience with Wordpress so can't help you, sorry :(
ReplyDelete@ RayPlay, I guess you want to center the title of the first post of your blog maybe to highlight it, I can do that for you. Go to Edit HTML and click Download Full Template to download your template file. Then send it to me through mail.
ReplyDeletethnks fr this tutorial! its work! :)
ReplyDeletethnx! it's work! :)
ReplyDeleteI have the simple template.
ReplyDeleteI want to affect only the comments part of this:
h3.post-title, .comments h4
But I can't seem to separate it from the post-title part. What I want is to have
display:none;
for the .comments h4, but not for the h3.post-title part.
Can't figure it out.
Actually, I just figured it out, with a little help from this page. I made a test blog that uses a different kind of template where .comment h4 is already separated from h3.post-title. I thought separating them was more complicated than it is. I thought I had to write a whole new variable paragraph just for .comments h4. I see I was wrong.
ReplyDeleteThank you for your help!
@ Traeh, you'll find this code:
ReplyDeleteh3.post-title, .comments h4 {
font: $(post.title.font);
margin: .75em 0 0;
}
to add 'display: none;' only to the comments heading, simply REPLACE the above code with the following code:
h3.post-title {
font: $(post.title.font);
margin: .75em 0 0;
}
.comments h4 {
display: none;
}
added the simple template code to center the title, didn't work. Any advice?
ReplyDelete@ C.L. Rogers, just checked the tutorial again and it's working perfectly for 'Simple' template, don't know why it's not working for you!
ReplyDeleteHey! I'm using Simple template...this is what pulls up when I search for h3.post:
ReplyDelete...can't figure out where to put the "align text center" thing!! Please help!
www.thestewartestate.blogspot.com
Hello!
ReplyDeleteI don't see why my question has not published here yet. Any way, I ask my question again.
With the help of this site, I was able to center my post titles, but the problem is that they are not clickable any more; or oddly partially clickable.
What is wrong with it?
Thanks
Minoudad
@ Minoudad, sorry bro I don't check the comments very often. Anyways, I've seen your blog and I've clicked a couple of posts and they're working correctly.
ReplyDeleteHello,
ReplyDeleteMy code looks like this.
What code to add and where to enter post the title?
Please help.
Thanks.
Hi Bilal!
ReplyDeleteDo you know how I can align the header and description text instead of the post title texts? I added an image to my Header (behind text and description) and my header and description texts and the picture is clashing and i would like to move the header and description text to the right/centre. Is this possible? Appreciate your help!! Thanks
Thank-You So so so much! :D
ReplyDeletegreat! Thank so much!
ReplyDeletethank you so much!!
ReplyDeleteHi Bilal!
ReplyDeleteIm wondering if u can help. I want to align my posts in the centre of my blog but Im using the old blogger template as none of the new ones are as simple as I want it!! I just need to make my posts sit in the middle of the page!!
Many thanks...
Luke
www.evm128.blogspot.com
@ luke, download and email me your template file.
ReplyDeletelevisinside0@gmail.com
thanks!!! but now how to i change the DATE ALIGNment, it looks off
ReplyDeleteHi there, I've noted down your request and will soon write a tutorial to do that. Please support this blog by linking back to it. Link code is available in the footer :)
Deletethank you thank you :))
ReplyDeleteit worked... thanks a million. xoxo
ReplyDeletethank you so much!
ReplyDeleteThank you for the simple instructions. Worked great! I am also wondering how to change the date alignment. Any tutorial for that yet? In the mean time I have changed the title back to the left. Thanks!!
ReplyDeleteHi The Elephant of Surprise, I'll surely write that tutorial soon.
DeleteIt doesn't help..
ReplyDeleteHi iMinnie, What is your blog address and what template are you using?
DeleteTHANK YOU SO MUCH! Your a lifesaver!
ReplyDeleteHi Rebecca, thanks for the kind words. Please add a link back to this blog.
DeleteHi, thanks! Have you done a tutorial for a date alignment yet? That would be really helpful thanks!
ReplyDeleteHi Soph, for date alignment, replace:
Delete]]></b:skin>
with:
h2.date-header { text-align:center; }
]]></b:skin>
Now, the date will be aligned to center. To align it to right, replace center with right.
You are awesome!!! Thanks so much!!!!
ReplyDeleteThank~u so much for this post... all I need now is to figure out how to move the 'posted by' section to the middle :)
ReplyDeleteI managed to figure it out for the footer too... definitely not brain science on my behalf but pretty happy with myself! :)
ReplyDelete.post-footer {text-align: center!important;
}
Hi!
ReplyDeleteI tried to do this and other codes that I found on Internet to add to CSS and nothing works to center the title and the pages section that is under the title. Both are on the left. Please, help!!!
Hi,
ReplyDeleteI tried to do this and other code options that I found on the Internet but, nothing works... I need to center the title and the section of Pages that is under the title. Both are on the left side. Please, help!!!
Hi Veronica, I've checked your blog. Codes mentioned in this tutorial are not there. Anyway, find the following code in your blog HTML:
Deleteh3.post-title, .comments h4 {
font: normal bold 20px Yanone Kaffeesatz;
margin: .75em 0 0;
}
and place the following code AFTER the previous code:
h3.post-title { text-align:center; }
The result would look like this:
h3.post-title, .comments h4 {
font: normal bold 20px Yanone Kaffeesatz;
margin: .75em 0 0;
}
h3.post-title { text-align:center; }
Please preview your template and you should see the post titles centered instead of left. After that, you can save your template.
Thnx
ReplyDeleteWork like a charm. Thanks!
ReplyDeleteThis was so quick and easy to do, been trying to figure it out for ages! Thank you!
ReplyDeletethanks brother
ReplyDeleteI'm not able to make it work on my test blog.. will keep trying.
ReplyDeleteHi Judy, what is the address of your test blog?
DeleteIt didn't work for me. I wonder if it's because I use a larger type and fancier font for my post titles? I can't think why else it won't work.
ReplyDeleteHi Lorraine, I'm no longer accepting any new requests. However, you can get premium support starting from $10.
DeleteI want to use a photo for my title and want to center it at the top of my page, I tried what you have posted here, but it does not work, what can I do? thanks
ReplyDeleteHi Joy, in the Layout tab, when you edit the header widget, it gives you an option to replace your title with an image or use an image with your title. Maybe that will help you.
Deletei've used an image for my blog title. how do i center it? thanks!
ReplyDeleteHi Emily, Check out a video tutorial here:
Deletehttp://www.youtube.com/user/bloggerhero
Thank you so much! This is the best and most professional tutorial I could find.
ReplyDeleteTnank you so much! I have done!
ReplyDeleteNice tip!!!Thanks!
ReplyDeletemine doesnt work :(
ReplyDeleteHi there, you can hire me to solve this problem.
Deletelevisinside0@gmail.com
thank you so much. i used it.
ReplyDeleteThankyou so easy,worked a treat.
ReplyDeleteoh thank you thanks you it works!!!
ReplyDeleteoh thank you!!! you're awesome
ReplyDeleteHow do you wrap the post title around your image in the summary to be included with the short summary about the blog post? Instead of on top of it.
ReplyDeleteThank yoU!
Hi Angel, your question went over my head :( Can you please explain or email me if you want a specific customization.
Delete