How To Create Jquery Read More-Expandable Post in Blogger


Oh what a great post, You might have been looking for ways or trick or hack to do this, but I'm here to tell you that is at your door post, just relax and read, then you do it yourself, it's very simple, you must not know anything about computer programming or web designing, but till yet you can. Just follow my steps on this and you will definitely understand it better.


1. Login to your blogger dashboard--> Template- -> Edit HTML ----> Proceed and clicked on Expand Widget, then you continue with step, now to find anything in your blogger template html, just hint Ctrl+F to bring out the find button to search for any code of your choice there.
This is how it is going to look like:



2. Now type in the box </head> to search for it, after doing that, just follow the next step .

3. Copy below code and paste it just before the </head> tag .

<script language='javascript' src='http://halotemplates.s3.amazonaws.com/jquery-truncator/jquery-1.2.3.pack.js' type='text/javascript'/>
<script language='javascript' src='http://halotemplates.s3.amazonaws.com/jquery-truncator/jquery.expander.js' type='text/javascript'/>
<script type='text/javascript'>
$(document).ready(function() {

$('.excerpt').expander({
slicePoint: 280, // default is 100
expandText: '[Read More...]', // default is 'read more...'
});

});
</script>

 Note:http://www.blogger.com/blogger.g?blogID=4058378300189517969#editor/target=post;postID=8937132331014411232
280 is the number of summary words, the minimum is 100 and the maximum is 400
You Can Change the word Read More... as your choice.

 5.Now again Scroll down to where you see this code :

<div class='post-body entry-content'>
<data:post.body/>
<div style='clear: both;'/> <!-- clear for photos floats -->
</div>

 4.Now Replace above code with below code :

<b:if cond='data:blog.pageType != "item"'>
<div class='excerpt post-body entry-content'>
<data:post.body/>
<div style='clear: both;'/> <!-- clear for photos floats -->
</div>
<b:else/>
<div class='post-body entry-content'>
<data:post.body/>
<div style='clear: both;'/> <!-- clear for photos floats -->
</div>
</b:if>


5.Click on "Save Templates" and now you are done.Refresh your site to see the effect. and enjoy...
you can link us back with this link to your blog or website..
<a href='http://www.naijaexploits.blogspot.com'>ICT EXPLOITS ZONE</a>


<a href='http://www.naijaexploits.blogspot.com'>ICT EXPLOITS ZONE</a>

Post a Comment

0 Comments