Nov 18, 2015

How to add Read More button in blog posts

How to add Read More button in blog posts
how to add readmore button to your blog posts
Read More button is must for a blog. By default a blog displays a whole post therefore a single post is displayed at a time. If you add a read more button almost 10 posts will be shown at a time. By adding a Read More button your blog will attract more visitors.  ReadMore button increases the beauty of the blog as well. Go through the steps below to add a Read More button to your blog posts.

Step 1Login to Blogger. Go to Template and click Edit HTML button.
Step 2. Now click anywhere in the text, then press Ctrl+F buttons. A search box will appear. Type </head>  in search box and hit enter. It will search the code in the Template.

Now copy the below code and paste it above </head> code.

<script type='text/javascript'>
posts_no_thumb_sum = 500; //
posts_thumb_sum = 400;    //
img_thumb_height = 160;   //
img_thumb_width = 180;    //
</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, pURL, pTITLE){
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: 10px;"><a href="'+ pURL +'" title="'+ pTITLE+'"><img src="'+img[0].src+'" width="'+img_thumb_width+'px" height="'+img_thumb_height+'px" /></a></span>';
summ = posts_thumb_sum;
}

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

<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<b:if cond='data:blog.pageType != &quot;item&quot;'>
<style type='text/css'>
.post-footer {display: none;}
.post {margin-bottom: 10px; border-bottom: 1px dotted #E6E6E6; padding-bottom: 20px;}
 .readmore a {text-decoration: none; }
</style>
</b:if>
</b:if>

Customization:-

You can change the numbers colored red in the code according to your choice.
Posts_no _thumb_sum=500;//   500 words if there is not an image in the post

Posts_thumb_sum=400;//   400 words if there is an image
Img_thumb_height=160;//    160 is the height of image
Img_thumb_width=180;//    180 is the width of image


Step 3.  Now press Ctrl+F and search for this code <data:post.body/>

Note:This code can of at many places. Press enter as many times as required to find how many times this code is in the template.

Erase the last code and copy paste the below code there
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<b:if cond='data:blog.pageType != &quot;item&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;,&quot;<data:post.url/>&quot;,&quot;<data:post.title/>&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 click on Preview Template and check it. 
Step 5.Now click Save Template and you are done.


Important Note: Download a backup of your Template before applying this. If you are not sure how to do this, you can read my post on How to download backup of Template in Blogger.



If you like this post or have any questions, Please leave a comment below
Read More »

Oct 30, 2015

How to download backup of Template in Blogger

How to download backup of Template in Blogger
How to download backup of your Blog Template
In a blog you keep editing your blog template from time to time. Sometimes you have to add different types of scripts/codes to improve or add more features to your blog You do all this to make your blog template more attractive and beautiful. but sometimes by a mistake you add the code/script at the wrong place and save the template even before a preview. It destroys your whole template and any improvements you had made earlier are also destroyed. Now you have to start from the beginning again. To prevent this disaster it is strongly recommended to download a backup of your Blog Template every time before you add any code or edit your Blog Template. 
In this post we will show you how to download a backup of your Blog Template


Step 1:- Login to Blogger and go to Template. 
How to download backup of your Blog Template

Step 2:- From upper right side, click on Backup/Restore




How to download backup of your Blog Template




Step 3:-A new window will pop up. Click on "Download full template"




How to download backup of your Blog Template

Step 4:- Save your template anywhere for future use.

Done...!!!!!

If you liked this post,Or have any questions, Leave a comment below


Read More »

Oct 24, 2015

How to hide/unhide a file extension

How to hide/unhide a file extension

www.tyk786.blogspot.comWhat is a file extension? A file extension is the alphabets written after the filename. For example in a file named “Tariq.txt” the file extension is “.txt”. Your computer identifies the files by their file extensions.
At times we need to change the extension of a file. By default file extensions are hidden. You can unhide the file extension and then only you will be able to change the file extension. Follow the steps below:-


  Step1:- In a Folder, click on "Organize" from top left and select "Folder and Search Option"
www.tyk786.blogspot.com 
Step2:- Click on "View" Tab. Uncheck "Hide extensions from known file types" and Save.
www.tyk786.blogspot.com


  Step 3:- Click Apply and OK. Now you will be able to see the extensions.

You can watch my video tutorial for the same below

       Click here to watch the video
Read More »

Oct 20, 2015

Effective email writing tips

      Effective email writing tips

www.tyk786.blogspot.com
Today In this age of science and technology use of email is compulsory. There will be hardly any person without an email account.From personal to corporate use, email is used everywhere.If you want to learn how to write an effective email or how to write an effective official email 
Here we are sharing with you some important tips for effective email writing. Please go through the points listed below for the same.





Few Good Opening Statements
  •  This is to inform you
  • This is to seek your permission
  • This is to update you
  • This is to bring to your notice
  • Please give approval for
  • Further to our discussion
  • I would like to
  • With reference to
   Few Good Closing Statements
  •  Please get in touch for any clarifications
  •  Please get in touch for further discussions
  •  I would be glad to be of assistance
  • I would appreciate your prompt response
  • Thanking you in anticipation
  •  Looking forward to your prompt response
  •  Looking forward to your cooperation
  • Your support is appreciated
  • Should you have any clarification

    Few Words That could be Replaced With
  • Reply  => Response / Respond
  • Thank => Appreciate
  • Sorry => Apologize
  • Please => Request you to
  • Problems => Issues/ challenges
  • Can => Could (Can is considered to be very rude but could is more polite)
  • But => However
  • Regarding => with respect to
   

  Things to be Remember, While Writing Official Mails
  • Email opening: Dear / Hello with first name is accepted globally. Practice using it.
  • Email closing: Closing statement is very important in an official mail. Please use it from the list mentioned above.
  • Words like guy / chill / cheers etc which are more funky type should not be used in official emails.
  • In the subject line we should not use verbs. Subject should not have more than 17 words
  • Using capital words in the mail. This is considered very rude and arrogant.
  •  Exclamation marks should not be used in the mail.
  • Void 2-3 messages on one paragraph. Try to convey one message in one Para.
  •  If required use bullets and make points. It is always easier for the recipient to reply points.
  • Instead of writing ASAP try to give timeline. This avoids confusion.

Hope you will find it worth inculcating as a practice & help enhance your communication skill.
Happy learning...

Leave a comment below if u like this post 
Read More »

Oct 16, 2015

Dengue Fever. Symptoms,Prevention and Treatment.

Dengue. 
Symptoms, Prevention, Treatment.

Dengue fever is a virus infection caused by the dengue virus, which is mainly found in the tropical regions.

Dengue is caused by the bite of an infected mosquito called Aedes egypti, a day biter and fresh water breeder .


















Read More »
Blogger Widgets