Saturday, March 1, 2014

Removing Showing post with label..


In Blogger, we set the posts with suitable label. The label is helpful for visitors when they search the post as require. When I click in a label, the blogger filters the posts tagged with that particular label. This is very good feature for blog. Unnecessarily, I don't need a big box saying the "Showing posts with label ......... Show all posts". I hate this feature.

So, I remove this feature from my Blog. If you also unlike this feature, you can also remove this as follow;

Steps

1. Log in to your blogger account
2. Go to Template >> Click Edit HTML
3. Using Ctrl+F  search the following part of code : (Click anywhere inside the editor and press CTRL + F )
<b:includable id='status-message'>
<b:if cond='data:navMessage'>
<div class='status-msg-wrap'>
<div class='status-msg-body'>
<data:navMessage/>
</div>
<div class='status-msg-border'>
<div class='status-msg-bg'>
<div class='status-msg-hidden'><data:navMessage/></div>
</div>
</div>
</div>
<div style='clear: both;'/>
</b:if>
</b:includable>
4. When you find above code lines, you recode the code line number in your mind. Copy the below codes and replace in above code. (If you have more confidence over Edit HTML, you can Delete the above codes and Add the below code same place.)
<b:includable id='status-message'>
<b:if cond='data:navMessage'>
<div>
</div>
<div style='clear: both;'/>
</b:if>
</b:includable>
5. Save your Template and View your Blog. You must checking this feature by clicking your any Label.
Thank!
Read More »

Add Custom Post Footer


Yesterday, I share many post about "How to Remove ....?".
Today, I share "How to Add ...? . :)
For customize the Blog, there are many way To Change, To Remove, To Add, To Edit and To Hide. Many Bloggers are share in there blog about that. I also sharing the Testing Code for Customizing the blog by test my Blog "www.mmblogchitthu.blogspot.com" .

Now, I'm going to share you how to add a custom post footer in your blog. It looks beautiful, attractive and very cool. I'm sure you guys will like it! This new footer has a really beautiful design. It specifies Post Author name, Publication date or time and number of comments. And here lies the good thing. It also has beautiful icons.

Start my sharing with step by step;

Steps

1. Log in to your blogger account
2. Go to Template >> Click Edit HTML
3. Using Ctrl+F  search for this tag:(Click anywhere inside the editor and press CTRL + F.)
]]></b:skin>
4. Just paste the following code above ]]></b:skin>.
.post-footer {
display: none !important;
}
Note : This code is to Hide/Disable your default Post footer. I share about "Post Footer Section Fully Remove from Blog" . If your do it and your blog have no post footer, you do not create this step(4).
5. Again make by pressing CTRL + F and search this code in your template;
<div class='post-footer'>
Note : Upon your Template style, you can see two or three time this code. Any, move towards the second one.
6. Paste the following code above that match (the second <div class='post-footer'> match in the search).
<style>
@import url(//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css);
@import url(http://fonts.googleapis.com/css?family=Lato);
.postmeta-primary {float: left;text-transform: capitalize;font-family: &#39;Lato&#39;, 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: &quot;\f007&quot;;}
.icon-calendar:before {content: &quot;\f073&quot;;}
.icon-comments:before {content: &quot;\f086&quot;;}
[class^=&quot;icon-&quot;], [class*=&quot; icon-&quot;] {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>
<div style='clear: both;'/>
7. Now , Save your Template and View your change.
Read More »

Friday, February 28, 2014

Remove or Hide Post Footer from Desire Pages

rev
I am learning more about of remove or hide the footer section of blog. Mostly, we customize our blog template to get more attention from visitors, like trying out stylish widgets, using different font styles etc. But sometimes we think, how to change the way some components appear on homepage, such as default Post Footer. Actually, its better to show it only at post pages.
Jump breaks (Read more) are great because they allow you to display snippets of blog posts on your home page. But if you are a blogspot user then Unfortunately, by default it displays the footer for each post, which really clutters up your home page.
Don't worry, I have the good news as follow;
  1. Remove or Hide Post Footer from Homepage/Index Page
  2. Remove or Hide Post Footer from Post and Static Pages
Now, I sharing about this step-by-step;

(1) Remove or Hide Post Footer from Homepage/Index Page

Sometime you may feel, its better to show it only at post pages but not on homepage. Did you land here with that thought in your mind? Then you can learn it from here. There is no option provided by Blogger to remove you Post Footer but customize. So to remove or hide Post Footer from you blog Homepage, you have to dig into your template.
Note: Before editing your template, you may want to backup or copy of it.

Steps

1.Go to Blogger Dashboard >> Template >> Edit HTML.
2.Now press Ctrl+F and find this
]]></b:skin>
3.Now paste the below given code after ]]></b:skin>
<style type='text/css'>
<b:if cond='data:blog.pageType == "index"'>
.post-footer {display:none !important;}
</b:if>
</style>
4. Preview your blog to confirm changes and Save template.

(2) Remove or Hide Post Footer from Post and Static Pages

If you are like to disable your post footer from other pages while keeping it on homepage, you can try below method.

Steps

1.Go to Blogger Dashboard >> Template >> Edit HTML.
2.Now press Ctrl+F and find this
]]></b:skin>
3.Now paste the below given code after ]]></b:skin>
<style type='text/css'>
<b:if cond='data:blog.pageType != "index"'>
 .post-footer {display:none !important;}
 </b:if>
 </style>
4. Preview your blog to confirm changes and Save Template.
 This is my ending of sharing. If you get any helpful, please re-share this post.
Thank!
Read More »

Post Footer Section Fully Remove from Blog

remove-footer
The Post Footer that is set by default in Blogger looks very ugly! Even if the whole blog is beautifully designed but the post footer isn't good then it would make a very bad impression.
Post Footer are useful in blogs, but when you get more professional in blogging you will find that it's not important. Visitors get the information of Author from this. Most of the professional blogger has removed it and in place of it they put their own sharing buttons.
I am not a professional blogger but I sharing the codes which is Remove the post footer section.
I have no idea about CSS and HTML, but I test all about of this post in my blog. When you are new to blogger you want to customize your blog according to your choice such as add a stylish menu bar for your blog, Customize your post footer options and much more.
(I sharing about How to Remove Post Footer from Homepage/Index Page at next post.)
OK! Start my work :)

Remove Post footer from Blog

This can be easily done by CSS, a small code of CSS can hide anything on your page.
  1. First go to Blogger Dashboard >> Template >> Customize >> Advanced >> Add CSS
  2. To remove the post footer we will add this small line of CSS code in the  custom CSS text area.
.post-footer
{
display: none;
}
Now, click Apply to Blog (at right corner) and View Blog.
Your Blog will look more neat and clean :) .

I test the other way for Remove Post footer from Blog as follow;
Step 1 : Go to Blogger Dashboard
Step 2 : Click on Template
Step 3 : Click on Edit HTML
Step 4 : Search this code
.post-footer {
add below code after above code
display: none;
Step 5 : Click on Save Template.
Now go to your blogger blog and check post footer in your blogger.
This is all my sharing. If you get any helpful , re-share my post :)
Thank!
Read More »

Automatic Read More feature for Blog Posts

This feature is useful for blogging. The blog loading time is reduce and the visitor is reading the some text from the post.
In the Blogger, default feature of Read More... was added. It's called Jump break. But, the blogger (or) Author is adding that by manual. So, this is a knotty problem for Author.
In this post, I share :) How to make posts in the blog homepage to be displayed with an automatic "read more" button and a thumbnail.
My network connection is very slow. So I directly share the screen shoot and code from Helplogger. (Helplogger is very useful blog for my learning.)
OK, start the work!

Step 1. 

From your Blogger dashboard, go to Template and click on the Edit HTML button:
(Oh! ... I advise to Back Up your Template before hit the Edit HTML button.)

Step 2. 

Click anywhere inside the code area, then press the CTRL + F keys and search for this code:
<data:post.body/>
Note: after hitting Enter, you'll find this code more than once but you need to stop at the second one. (When I change my template, I find three times and recode code line number, example: I find first at line no. 1381 , second is find at line no. 1509 and third is find at line no. 1514. So, I decide the line no. 1509.)

Step 3. 

Replace the code above with this one:
<b:if cond='data:blog.pageType != &quot;item&quot;'>
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<div expr:id='&quot;summary&quot; + data:post.id'><data:post.body/></div>
  <script type='text/javascript'>createSummaryAndThumb(&quot;summary<data:post.id/>&quot;);</script>
<span class='readmore' style='float:right'><a expr:href='data:post.url'>Read More &#187;</a></span></b:if></b:if>
<b:if cond='data:blog.pageType == &quot;item&quot;'><data:post.body/></b:if>
<b:if cond='data:blog.pageType == &quot;static_page&quot;'><data:post.body/></b:if>

Step 4. 

Now search for the following tag:
</head>

Step 5. 

Just above the </head> tag, add the following code:
<script type='text/javascript'>
posts_no_thumb_sum = 490;
posts_thumb_sum = 400;
img_thumb_height = 120;
img_thumb_width = 120;
</script>
<script type='text/javascript'>
//<![CDATA[
function removeHtmlTag(strx,chop){
if(strx.indexOf("<")!=-1)
{
var s = strx.split("<");
for(var i=0;i<s.length;i++){
if(s[i].indexOf(">")!=-1){
s[i] = s[i].substring(s[i].indexOf(">")+1,s[i].length);
}
}
strx = s.join("");
}
chop = (chop < strx.length-1) ? chop : strx.length-2;
while(strx.charAt(chop-1)!=' ' && strx.indexOf(' ',chop)!=-1) chop++;
strx = strx.substring(0,chop-1);
return strx+'...';
}
function createSummaryAndThumb(pID){
var div = document.getElementById(pID);
var imgtag = "";
var img = div.getElementsByTagName("img");
var summ = posts_no_thumb_sum;
if(img.length>=1) {
imgtag = '<span class="posts-thumb" style="float:left; margin-right: 5px;"><img

src="'+img[0].src+'" width="'+img_thumb_width+'px" height="'+img_thumb_height

+'px"/></span>';
summ = posts_thumb_sum;
}
var summary = imgtag + '<div>' + removeHtmlTag(div.innerHTML,summ) + '</div>';
div.innerHTML = summary;
}
//]]>
</script>

Note:
  • To change the number of characters shown when there is no thumbnail, modify the 490 value in blue. For the number of characters shown when a post has a thumbnail, modify the 400 value.
  • If you want larger thumbnails, modify the values (120) in red.

Step 6. 

Click on the Save template button to save the changes.
This is the finished of my sharing.
If you want to view the orginal post and reading the knowledge of Blogger, Go to Helplogger.
Thank !
Read More »