Add icons to Post footer elements

February 22, 2009

We're going to spice up our Blogger Post Footer a bit. We'll do this by rearranging post footer elements (Labels, Posted by, Email this posts, Comment Link..) and adding an web icon to each.

Few notes:
► the example is made in default Blogger Minima template, and the tutorial is quite easy if you're using this template
► if you're using some other default Blogger template, this tutorial will also work, but you'll have to adjust some things (maybe)
► if you are using a third-party customized template, this will work ONLY if you understand how this is done (basically, you'll have to identify your element's ID, and add some CSS style for each)

REARRANGING ELEMENTS
Blogger Post Footer is divided in 3 rows. Go to:
LAYOUT ► PAGE ELEMENTS ► click on Edit in BLOG POSTS box.
There, you can see your Post options. On the bottom, you can see 3 rows in Post Footer and elements in them.

For this example, I've activated:
► Links to this Post
and
► Show Email Post links
You do the same, and if you decide not to use those, you will deactivate them later.

You can easily rearrange elements (separate them), just by "dragging" the element in desired row.

Ok. When the post elements are rearranged, the next step is: adding icons. Wheeee!

***

ADDING (PLACING) ICONS TO ELEMENTS
Before doing anything, back up your template (1 minute). When you did, we're ready to go.

1. find the icons you'd like to use (small ones, like 16x16 px)
2. upload the icons on a free web host (like Photobucket.com, Tinypic.com...) to get the Direct link (URL address)
3. increase the line-height of the post footer lines (to make some space between them)
4. code tweaking (basically, copy-paste)

1. Here's the list of some web resources where you can find free web icons:
:: www.webiconsets.com
:: www.freeiconsweb.com
:: www.freeiconsweb.com

2. You have to upload your pics (icons) somewhere in order to get the Direct Link (URL address) for your Layout (template). You can use Photobucket.com, Tinypic.com, or any other service you prefer..

3. Next is to increase the line-height of our Post footer. Go to LAYOUT ► EDIT HTML ► and find the:
.post-footer {
...and in my example (for default Minima template), the complete Post-footer style looks like this:
.post-footer {
margin: .75em 0;
color:$sidebarcolor;
text-transform:uppercase;
letter-spacing:.1em;
font: $postfooterfont;
line-height: 1.4em;
}
...in pink, you can see the line-height. You have to increase the value so your pictures don't get cropped:
► change the 1.4em into 2em (works fine for 16x16 px icons)
► if you have bigger (larger) icons, you will increase this value some more...

Anyway, remember that you can control this, and try a few heights to see what's the best fit.

4. Go to LAYOUT ► EDIT HTML ► and locate this part in the code:
.comment-link {
margin-$startSide:.6em;
}
...we will DELETE this part, and replace it with this one:
.post-author {
background: url(URL ADDRESS OF THE ICON) left no-repeat;
padding: 2px 0px 2px 20px;
}
.post-labels {
background: url(URL ADDRESS OF THE ICON) left no-repeat;
padding: 2px 0px 2px 20px;
}

.comment-link1 {
background: url(URL ADDRESS OF THE ICON) left no-repeat;
padding: 2px 0px 2px 20px;
margin-right: 5px;
}

.comment-link2 {
background: url(URL ADDRESS OF THE ICON) left no-repeat;
padding: 2px 0px 2px 23px;
margin-right: 5px;
}

.post-icons {
margin-right: 5px;
}
...in orange, you'll place the pic that will appear beside Posted by
...in pink, you'll place the pic that will appear beside Labels
...in green, you'll place the pic that will appear beside Comment Link
...in blue, you'll place the pic that will appear beside Links to this post

Save template.
With padding you can control the distance between certain icon and it's text.
With margin, you can control the distance between different elements.

Next, in LAYOUT ► EDIT HTML ► click on Expand Widget templates in the upper right corner. Use CTRL + F (or Edit ► Find from your browser) and locate the code regarding comment link:
HINT: search for the post-comment-link
<span class="post-comment-link">
<b:if cond="data:blog.pageType != &quot;item&quot;">
<b:if cond="data:post.allowComments">
<a class="comment-link1" href="data:post.addCommentUrl" onclick="data:post.addCommentOnclick"><b:if cond="data:post.numComments == 1">1 <data:top.commentlabel><b:else><data:post.numcomments> <data:top.commentlabelplural></data:top.commentlabelplural></data:post.numcomments></b:else></data:top.commentlabel></b:if></a>
</b:if>
</b:if>
</span>
...you have to place number 1 (in red) in exactly like it's shown above.

Then, find the code for Links to this Post:
HINT: search for post-backlinks
<span class='post-backlinks post-comment-link'>
<b:if cond='data:blog.pageType != &quot;item&quot;'>
<b:if cond='data:post.showBacklinks'>
<a class='comment-link2' expr:href='data:post.url + &quot;#links&quot;'><data:top.backlinkLabel/></a>
</b:if>
</b:if>
</span>
...and place the number 2 (in red) like it's shown above. Save.

CUSTOMIZING THE EMAIL THIS POST LINK
When you've placed your icons, you'll notice that the Email this Post link has no text beside it. You can customize it:
► by adding some text (like Email this post to a friend)
► you can change the default icon to whatever suits you
Go to LAYOUT ► EDIT HTML ► click on Expand widget templates, and locate this code:
HINT: search for email post links
<!-- email post links -->
<b:if cond='data:post.emailPostUrl'>
<span class='item-action'>
<a expr:href='data:post.emailPostUrl' expr:title='data:top.emailPostMsg'>
<img alt='' class='icon-action' height='13' src='http://www.blogger.com/img/icon18_email.gif' width='18'/>Email this post
</a>
</span>
</b:if>
....in orange, you can see where to place your text
...if you'd like to change the default icon, replace the URL in green with your own
...if you do that, make sure you input the correct height and width of your new picture (in pink)

That's about it. If you'll have some doubts, questions, scream! I'll help...

post signature

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

63 comments:

Nazz said...

Nice info and i like most of your entries... keep it up..

Naqib Mohamad said...

how can i insert a picture with a very small size... i mean how to resize it? i didnt understand to html code n how to operate it...

pocket said...

You can download already resized picture. Read the instructions carefully....It's not hard to do it, just follow the steps..

knight of silent said...

hye..
may i know how to change title post color?.also how to make border in blog?.let say i want to make border between two posts or between post and sidebar.so how to make it.

pocket said...

knight of silent,

► you can change the Post Title color in LAYOUT ► FONTS AND COLORS
► to add a divider between posts, read this:
Post divider

Heidi said...

Thanks for the great help--Again. This one isn't working for me. I successfully added an icon with one of your older tutorials. The problem is that the icon frequently ends up on a different line than what it goes with (comments). I thought putting my post footers on separate lines would solve the problem, but it's not working for me. I have arranged my footers on the three separate lines, just as in your tutorial, but they still appear mushed together on one-and-a-half lines (the default). My changes are being saved, but not applied. Any ideas?

pocket said...

Heidi,

when you are rearranging elements into separate lines, be careful. It's tricky.
The Post footer lines are divided by dashed squares. Be careful when you "move" the element. You have to place it in new line, and not just under something. In your case, you're using 2 lines. I suggest to pull the Labels in the 3rd line, and then, drag the comment link in the 2nd.
You'll get it..

Yummee Mummee said...

i'm having the same problem.. i'm using your float-a layout and although i was able to insert icons that i want, i can't create 3 lines for the footer.. i've edited that area several times from the page elements to no avail.. pls help.. thank you :)

pocket said...

Yummee M,

read the comment above. Same thing. You have those 3 lines. Just have to "break" them.
Currently, you have Labels in the 2nd line, and all other stuff in the 1st.
Go and Edit the lines again. Notice the dashed squares (boxes) that define the line...
Ok?
I like the icons you've placed there...
:]

Yummee Mummee said...

i've tried that several times already but it's ok now, i had to edit the html manually to fix it.. thanks! :D

btw, i got the icons from kao-ani.com :)

Heidi said...

I have my comment label in the first line box, my posted by and date time labels in the second line box, and my labels label in the last line box. I switched the order just to see if blogger would register the change. Nope. The labels are not rearranged, and they only use two lines.

Maybe I'll have to try it in the html code, also. (i'm not good at that yet, though.)

pocket said...

Hm,

..you can try clearing your cache. I'll make a tutorial on how to rearrange the elements manually in HTML...soon.
:]

Yummee Mummee said...

hi! i tried to make a "tutorial" on how to do this using edit html. you can check it out at http://yummeemummee.blogspot.com/2009/02/how-to-rearrange-post-footer-elements.html thanks :)

pocket said...

Yummee Mummee,

That's brilliant! Thanks for update, and your patience...
:]

Eleté said...

Damn, im almost done with what I want to do for my blog. The thing is for some reason the comments thing are still on the same line as the author of the post so the icon for the comment line wont show...
Ive tried changing it and it remains in the same line, could you help me sort this out?

My blog is todosobrecamisetas.blogspot.com

pocket said...

Eleté,

..make sure you've added the number "1" beside your comment-link, like in the tutorial step 4. Looking at your template code, I can't see you've done this...

Also, for rearranging elements manually, read this post:
Rearrange Post footer elements
..if you're still have problems, scream!
:|

Eleté said...

I tried doing what you said, and while the icon for comments appeared the problem is its still in the same line as the author of the post icon.

Looking at the "post-footer-lines" I noticed the comments still appear as in the 1st line and the tags as in the 2nd line, while they should be in the 2nd and 3rd respectively. I tried changing this but when I cut and paste the comment section into the 2nd post footer line and the tags to the 3rd and try to upload it says the closing "p" tag is missing (but I carefully copy and pasted everything and closed it with "p" closing tag after each line)

:/

Scooby said...

Hello!

I doing great at designing my blog thx for your tutorials, but i'm having problems with this. I would like to create icons for labels, comments and email this post links, but it only works for the labels. Can you help me? Thx in advance!

http://mrbrownandmrblue.blogspot.com/

Beth said...

I am trying to place a small heart by my "Comments" link. However, check out my blog: the heart is HUGE! Is there a way to down size?

I really appreciate your great tutorials -- so helpful! :)

pocket said...

Hey Beth...

I just came back from your blog, and can't see any icon there...Can you share the pic? Maybe it's just too big?
:|

Beth said...

Well, I've been working on it this morning; I found a smaller one. But perhaps it's so small that you can't see it! Ha! I actually don't love it. It has a white background, and it's hard to see. I just want a little heart to go beside my comment link. I am having a hard time finding an appropriately-sized one with a transparent background. Any suggestions?

But it's right next to the "comment" link if you want to look. And actually, I'm curious to know how I could space over the word "comment" so it's not right beside the icon. Any suggestions?

pocket said...

Scooby,

..if you've followed the tut completely, it should work...

pocket said...

Beth,

..I see it. You can find better one...If you want, I can make one for you. Show me the heart you like, I'll color it, and remove the background from it. It's 3 minutes tops.
..to push the comment link (text) to the right, increase the last value from the padding in comment-link code. Now you have:

padding: 15px 10px 15px 10px;

..change it into:

padding: 15px 10px 15px 20px;

..or increase it some more if you need to...or decrease...

:]

Beth said...

That worked like a charm! You're great! I am so new to all of this that I had no idea which value to change. Easy peasy! :)

Oh gosh, I would love it if you could make me a heart. I like this one, but it was the one that was way too big:

http://i260.photobucket.com/albums/ii30/lilmamasobad/thflashinghearts.jpg

And the one I currently have is from here:

http://i260.photobucket.com/albums/ii30/lilmamasobad/thflashinghearts.jpg

But it's a little too light and very small. And they both have white backgrounds. It seems I can't find the perfect one! I appreciate anything you can do to help. :)

Swashata said...

@Beth Here is your 16X16 transparent background heart! I hope you like this! Well I was modifying ma blog greenTechspot and as Corel draw was open so made it :D

http://i362.photobucket.com/albums/oo61/swashata/blog/hearts16.png

@ Pocket!
Again great tutorial dude! Really you are awesome :D! Btw I have found a way to add some space b/w Email icon and text! We need to add exactly this code before "Email this link" ==> &amp;nbsp; as many time we want! :) like &amp;nbsp;&amp;nbsp;Email this link

Thank you :)

pocket said...

Swashata,

...you are a lifesaver! I hope Beth will like the heart....

..thanks man!

:]

Beth said...

You are awesome! I love it! :) :) :) That was so nice of you... thank you!

Swashata said...

@Pocket: Well you are the true lifesaver out here! Really!!! I just read only 50% of your Tutorials and use a little of ma head [which I bang always :D] then bingo! :D! Really your tuts are so simplified!

btw I am having a problem! Though I have subscribed to your comments but I dont get any mail when u comment! :O Only get mail when some other people commenst :(! Please take a look at this

Swashata said...

@Eleté

I have faced the same problem! Its because in your CSS the a:link and a:hover have some definite background defined! I have removed those but as I dont know your template so this method will definitely work for you :)

.post-author {
background: url(URL ADDRESS OF THE ICON) left no-repeat !important;
padding: 2px 0px 2px 20px;
}
.post-labels {
background: url(URL ADDRESS OF THE ICON) left no-repeat !important;
padding: 2px 0px 2px 20px;
}

.comment-link1 {
background: url(URL ADDRESS OF THE ICON) left no-repeat !important;
padding: 2px 0px 2px 20px;
margin-right: 5px;
}

.comment-link2 {
background: url(URL ADDRESS OF THE ICON) left no-repeat !important;
padding: 2px 0px 2px 23px;
margin-right: 5px;
}

Coujones said...

Thanks for the great tutorials. I am trying to change the font and letter spacing of my post footers with no success. I tried using some of the elements you described when trying to change it for the post title, but it didn't make the change. Any suggestions?

http://coujones.blogspot.com/

pocket said...

Coujones,

..you've tried to change the styles under:

.post-footer {

..that should make the changes..
:|

garth said...

Hi!

If you've got multiple people posting on your Blog can you display a different icon for each user (next to the posted by: )

thanks alot!

pocket said...

Garth,

..here's a nice tut:
Different images for different authors

Monami said...

Hi. I am using a sanddollar 3 column template. But even though I have enabled the boxes for link,email,reactions,all i see below my posts in comment and link?? Pls advise.

http://citizenoftheworldwantsjustice.blogspot.com/

Upstatemomof3 said...

How can I use a background image under just the bottom (the footer section) of a post? I would like grass on the bottom of the post, blue sky color for the middle, and then a cloud for the post-header image. I have 2 out of the 3. Just can't figure out how to do a background image under that post footer.

Haneey Brown said...

hi pocket.. everything went fine according to your great tutorial.. one thing, like always a design detail, if you change the default "email this" icon, it won't be aligned with the other icons.. any possibility to add a padding for the "link this" icon and text?

Normal Alex said...
This post has been removed by the author.
Normal guy said...

Hi, I am using the minima template, I have tried everything but still cannot add space between my labels and comments links. Any help would be greatly appreciated thanks

my blog is at www.ebizexperiment.com thanks in advance

kenwooi.com said...

nice one! =D

Brate said...

Quite impressive post Vinh. Actually, the snapshot you have posted iseally nice. You covered almost everything starting from header to footer. Such things, though seems to be useless to be built, but are very useful in attracting visitors, and hence increasing traffic to you website. Especially your Contact link information was quite eye catching. Many designers think that visitors are as proficient in finding the links they are searching for. Such design really helps. I have hired a medical web experts website designing and marketing company (www.medicalwebexperts.com) since 2-3 years. They have been working very well on it. But your post has provided one more point which can be implemented on my website to further increase my traffic.

Web Design Quote said...

The above tutorial is great and the icon are which is using in your blogger template is really nice ideas so for.

Deogracias said...

Nice info,...

How to make smile icon at comment post..??

Thank's keep going...

WOT said...

Hi there

I haven't got the "Edit" option showing on my Blog posts window!?! I think I've erased something whilst customizing my blog. Please, can you help? which bit of code do I need to include to put the "Edit" option back on??
Thanks

Wesley Soccer said...

my labels disappeared in my third post and behind and all new post no labels..right now I have no icons next to anything...but did...looked great on first two posts but none of the other ones..any idea how I lost the labels...?

Wesley Soccer said...

www.wesleysoccerblog.com...above sorry forgot

Wesley Soccer said...

fix the problem...thanks

Who's your AVON lady? said...

I do not know what's going on with my blog... the link to post is not showing :/ with the image i chose for it and also one of my reactions is not showing either. Can you help me please? I'm VERY new to blogs LOL :/ Thanks for all your help

Frank said...

Hi, could you be so kind to help me with the following: I'm trying to make the distance between my header and the top post smaller. Right now, I am using a moviequote as a header. Beneath the header is quite a lot of empty space and then the post title. I would like to shorten that empty space. How to do that? Greeting, Frank (frankoverlast.nl)

Respect said...

thank.......

Visit this site for more fun.......

www.swish08.blogspot.com

Anhstar said...

Thank you very much for the nice and detailed tutorial.

Angie said...

OK, this is great! But I'm having problems! I changed my wording to Leave A Comment but I would like to have: Leave A Comment and: 5 Comments on 2 separate lines because now it says: Leave A Comment...5
Comments

Just like that - broke up on 2 separate lines. I tried arranging the lines in the arrange items in the blog post edit, but it doesn't change this problem. Can you help? I know it's not a big issue but it bugs me!!

Hazzy Ishak said...

brilliant...love it
thanks

pocket said...

Angie,

read this post.

Here, you'll identify the Comments part of the code, and then all you have to do is place in in a new row....

Be patient and pedantic....

Smile!

cathi said...

Good post, Thank you for all these interesting information, it is a very important site.
http://01-business.blogspot.com

icon collection said...

you really did a very good job. its awesome. i didn't know to add footer in this way. Thanks again to teach us .

KAMEHA said...

Thanks Really brilliant...love it :)

Best Free Software http://mydownz.blogspot.com

mary said...

thank you very much!

Ebnat's Syukur said...

Thanks for this tuts

folder inserters said...

KAS Paper Systems are manufacturers of high quality mailing machines, paper handling systems and print finishing equipment. KAS Paper Systems product range includes:
folder inserters

Itsolusenz said...

Great resources for inspiration – thanks!!

Regards,
www.itemplatez.com

Anonymous said...

Icons for author and labels do come out, except for comment. I followed all the instructions. I don't know what I did wrong...

mbt shoes said...

Do you like MBT shoes online MBT chapa buy it MBT chapa shoes with MBT lami free MBT lami shoes shipping MBT kaya over MBT kaya shoes us,we MBT M.Walk sell MBT m walk shoes on line mbt men shoes for mbt women shoes and vibram five fingers sale vibram five fingers sale is our discount vibram five fingers best cheap vibram five fingers choice cheap MBT chapa shoes thank cheap MBT lami to cheap MBT lami shoes see cheap MBT kaya it cheap MBT kaya shoes you can cheap MBT M.Walk go cheap MBT m walk shoes by cheap mbt men shoes click cheap mbt women shoes

Hotels in Tbilisi said...

Welcome to the Hotel Mkudro in Tbilisi, Georgia

Hotel's description

Hotel Mkudro is situated in one of the most ecologically pure area of Tbilisi. Comfortable and quiet atmosphere is the guarantee of perfect rest and stainless service.

Building of the hotel is surrounded with the evergreen garden; it is fenced and safeguarded all day and night. The hotel has Lux and standards room.

Hotel "Mkudro" can offer a service car to go to the city centre which is only 15 minutes driving. Also tax can be proveded with the price of 3-4 USD.

Room prices start from 35 USD

Say it...

Related Posts with Thumbnails