Add custom post footer in blogger
Google Blogger is the world’s second largest blogging platform. It has many outstanding features including a free super fast hosting which indeed makes it more superior than other platforms, but still Blogger has many limitations and flaws which can be ignored by doing some customizations in the ordinary template.
Today we will talk about a weak point of Blogger and that is the post footer area. Blogger already has a post footer area, but it really looks ugly. The design doesn’t look professional and those social buttons are really poor to be very honest.
So today we will learn a trick from which we can completely change the post footer of our blogger template. To install a custom post footer in your template, follow the tips given below:
First go to Blogger Dashboard>>Template>>Edit HTML and search for ]]></b:skin> tag. Once you have found it, paste the below given code just above the skin tag.
[php].post-footer {
display: none !important;
}[/php]
We just disabled the normal post footer which comes with a normal blogger template. Now we need to install our custom footer, for this search for <div class=’post-footer’> tag. You may find two matches, make sure that you proceed to the second one.
Just paste the below given code before the second <div class=’post-footer’>:
[php]
<style>
@import url(//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css);
@import url(https://fonts.googleapis.com/css?family=Lato);
.postmeta-primary {float: left;text-transform: capitalize;font-family: 'Lato', Arial, sans-serif;margin-top: 20px;width: 100%;border-top: 1px solid #ddd;border-bottom: 1px solid #ddd;padding-top: 10px;padding-bottom: 10px;}
.postmeta-primary .fa {margin-right: 10px;}
.postmeta-primary a{text-decoration: none;}
.author2, .meta_date, .meta_comments {margin-right: 10px;padding-right: 10px;border-right: 1px solid #ddd;}
.author {text-transform: uppercase;}
.icon-user:before {content: "\f007";}
.icon-calendar:before {content: "\f073";}
.icon-comments:before {content: "\f086";}
[class^="icon-"], [class*=" icon-"] {font-family: FontAwesome;font-weight: normal;font-style: normal;text-decoration: inherit;-webkit-font-smoothing: antialiased;position: relative;}
</style>
<div class=’postmeta-primary’>
<span class=’author’><i class=’fa icon-user’/><a expr:href=’data:post.authorUrl’ rel=’author’ target=’_blank’>
<data:post.author/></a>
</span>
<span class=’meta_date’><i class=’fa icon-calendar’/><a><data:post.timestamp/></a></span>
<span class=’meta_comments’><i class=’fa icon-comments’/>
<b:if cond=’data:post.allowComments’>
<a class=’comment-link’ expr:href=’data:post.addCommentUrl’ expr:onclick=’data:post.addCommentOnclick’><b:if cond=’data:post.numComments == 0′>No Comments<b:else/> <b:if cond=’data:post.numComments == 1′><data:post.numComments/> Comments<b:else/><data:post.numComments/> Comments</b:if> </b:if></a>
</b:if></span>
</div>
<div style=’clear: both;’/> [/php]
You will perhaps not want this custom footer to appear on post and static pages. For this find ]]></b:skin> tag again and paste this code just below it:
[php]
<b:if cond=’data:blog.pageType == "item"’>
<style>
.postmeta-primary{
display:none !important;
}
</style>
</b:if>
<b:if cond=’data:blog.pageType == "static_page"’>
<style>
.postmeta-primary{
display:none !important;
}
</style>
</b:if>
[/php]
Final Words
After installing all the codes correctly in your template, everything should work fine. However, If you have any further queries then please let me know in comments. Stay tuned for more, till then Good Bye.
P.S: Special thanks to Rafay for making this cool widget for us.
Related Posts
-
Google will now help users to find out mobile friendly sites
4 Comments | Nov 18, 2014 -
How to improve your Alexa rank? Some tips and tricks
3 Comments | Jan 9, 2015 -
5 Best Tools to get your Blog statistics
No Comments | Jan 17, 2015 -
Why you should prefer WordPress on any other blogging Platform?
10 Comments | Nov 26, 2014
About The Author
Hasnain Haider Abbas
Hasnain Haider Abbas is a 25 years old web entrepreneur and founder of Articlesteller.com. In the early stage of his life, he fell in love with technology, His expertise is in SEO, Content writing, Social Media, Affiliate Marketing, Web development, and Business promotion.
Thank you this is very helpul
Thankyou
But the comment count is not correct.
There are 10 comments . but it is showing as 4 comments
Hello Hussnain,
Please tell me how did you placed the “ADVERTISE HERE” link in the footer of your blog?
Give the link if you have already written about this in your blog or you can reply to this comment or even send me an e-mail.I need help so please do this favour for me
Thanks
Obaid Muzaffar
Well that is a feature with this theme. If you are using the same theme, then go to Appearance> Theme options. You should find the settings option there