Friday

How To Automatically Add A Read-More Tag To All Posts On Your Blog

How To Automatically Add A Read-More Tag To All Posts On Your Blog


This topic was actually created based on the request of a fan of this blog, but I’ve decided to publish it to the front page so that everyone can learn from it and also be a beneficiary at large.

Sometimes ago, i talked about how to put a read more attribution link to any text copied from your site , but today we're talking about adding a read more tag to each topic of ur blog post.
As a blogger you might have been seeing so many websites with this jump-break (read-more tag) of a thing and you keep wondering how it was configured or programmed on that particular blog. But whenever you try to understand how it’s been done so that you can do the same thing on your blog; you always don’t just understand or even get confused at times.

When it comes to technology, we at Damytechs blog have it as our utmost priority to make sure that we feed you with a useful, comprehensive and self-explanatory articles.
Today, I’m assuring you that you gonna learn it fully and you’ll be able do it yourself on your blog. So, just sit back and enjoy learning with us the step by step process of automatic adding of read-more tag to all posts on your blog.

Question1: What Is A Read more Tag?
A read more tag is one that summarizes a blog post by displaying the topic and a little part of the post and preceded by a “Read More” tag(link) in its front. When the “read more” link is clicked it will show the full post of that particular topic.

Question2: Why Do I Need It On My Blog?
·       It makes your blog neat and well arranged(users friendly).
·       You will be able to display lots of topics at the front page.
·       It makes your blog load faster.
·       It increases time spent by readers on your blog/site,
·       Finally, it will Increases your page views.

Question3: How Do I Install It On My Blog?
To install it on your blog follow me up from the first step to the last step. Now, lets go…

STEP1: Log on to your Blogger Dashboard click on Theme , then Edit HTML.


STEP2: Click anywhere in the code area and press ctrl+ F ,then search for this tag (Hit enter)
<data:post.body/>


Note: After hitting on enter you will find this code more than once, stop at the third one!

STEP3: Replace the code above with this one:
<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>

Note: If you don’t see any changes after going through all the steps, replace the second <data:post.body/> tag as well!.

See this also: Reasons why search engines might have ignore your website.

STEP4: Now, search for the following tag:
</head>
STEP5: Just above the </head> tag, add the following script and css code:

<script type='text/javascript'>
posts_no_thumb_sum = 490;
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>

Further customization:
*To change the number of characters shown when no thumbnail(image), change the 490 value in blue.
*To change the number of characters shown when there is a thumbnail(image), change the 400 value in blue.
*If you want larger thumbnails change the 160( height) and 180(width) values in red.

STEP6: Click on save theme, then you’re done!.

If this post was useful to you please do not hesitate to drop your comment. Also, if you are not able to do it successfully, we are interested in helping you through so please let us know by using the comment box below!

THANKS FOR VISITING DAMYTECHS BLOG!!!.

Enjoy!

Monday

 Bluetooth And Wi-Fi Not Working: 5 recommended Alternatives To Share Files.

Bluetooth And Wi-Fi Not Working: 5 recommended Alternatives To Share Files.

We all know how easy & fast it is nowadays to share files between a device and the other. The progressive and rapid advancement in technology brought about the existence of so many varieties of mobile devices such as mobile phones, tablets, ipads e.t.c [specifically smart phones].

These smart phones have at least two(2) media for file transfer which are “Bluetooth” and “Wi-Fi direct”, which i believe that most of us prefer using “wi-fi” to Bluetooth. May be due to the speed at which datas are being transferred.

But come to think of this, what of those that had the two media of data transfer disabled on their phone, is there any other method/means such person can use to transfer files from a particular device to another or do you think  that is simply the end for them? Oh No!!!. Remember that where there is a will there must surely be a way, that’s why am writing an article on this topic today so that you can be enlightened & know how to go about it.The end has not yet come  because your Bluetooth and Wi-Fi is not working, there are actually other ways you can get files into your device even without the two medium mentioned above.
Below are some other recommended ways in which files can be transferred:

1)  USB CABLE:  All smartphones have a USB cable that comes with it, when just purchased new, if yours  is no more working again(can’t connect to pc successfully) you will need to go to an  electronic shop and purchased one that works perfectly with your phone.

The functions of a USB cable are:
·         Charging capability:  it charges your device.
·         Phone to pc data connection: connects your device to pc.

After a successful connection to the pc (computer), it will show on the computer as “detected”.So you can simply  scrol to the folder where the file is, and make use of the control copy and paste command[ to copy=> ctrl+C. and to paste=> ctrl+V ]

2)  NFC (Near Field Communication):   This NFC (Near field communication) can only exchange data between two devices with a distance less than 10 cm apart (it might be increased latter) meaning that it  is  a  short ranged communication technology . A device that has NFC-powered ability will be able to exchange data with another NFC enabled device.
The functions of NFC in a device are:

  • Can make digital transactions e.g. bills and credit card/debit card payments at a very high security  protection.
  • Transfer of phone data.   

3)  MEMORY/SD CARD

How to go about it:

  • Cut and paste/Copy and paste your files into your internal phone memory then delete the data on the memory card.
  • Remove the SD  CARD and insert into the device you need a  file from;
  • copy of all what you need and insert it into your own device.

4)  THE INTERNET: With the aid of good internet connections, upgrade in internet network  from  2G  to 3G ,not only that we now have 4G LTE;a super fast internet network connection ,which makes you surf the internet swiftly and smoothly.

You can also make use of the internet as a medium for file transfer . How? ,through the use of some applications namely :

  • Messaging app : such as  whatsApp (a widely used social messaging app, download it HERE) ,  Facebook, email services. Messaging apps can mainly be used for small or light data  transfer.
  • File sharing sites :
     *     Google drive
     **   Dropbox
     *** Zippyshare  etc.
After uploading the files to any of the above file sharing site, you then give out your link so that the person that needs it can download it to the device.
With this method, you can share large file online and easily get it on your device.

5)  The last method i will recommend is “USB Device + OTG” : OTG means “On The GO”. It is a feature that comes with the most Android phones. If it also came with your phone then you can connect a USB device or USB flash drive to the phone using OTG cable.

 So, once connected, all the phones' data can be easily copied to the USB device and there you go!!!!!!!!!!!!

Do you have any other data/ file sharing method you know about?... please let us know via the comment section below.
Thanks for taking your time to learn from Damytechs blog – a place you can’t afford to miss.
Make sure you click on the share buttons  below to show us some love.
Thanks   a   million   times!.