<span class="fullpost">
…… Passage article........
</span>
Look at again Making Read More. Now, for the not-so difficult to want to make the code, we will create Read More faster than before. We only need to set up the number of letters / characters that need to appear before shown any posts Read More.
In addition, Automatic Read More script can display the picture / image at the beginning of the paragraph, even if we upload pictures that we do not place the beginning paragraphs.
Want to try, follow these steps:
1. Login to your Account Blogger
2. Click Layout
3. Select Edit HTML
4. Find code </head>
5. Copy the following script above code </head>
<script type='text/javascript'>
var thumbnail_mode = "float" ;
summary_noimg = 400;
summary_img = 350;
img_thumb_height = 120;
img_thumb_width = 120;
</script>
<script src='http://www.geocities.com/sehatserasi72/readmoreautomatic.js' type='text/javascript'/>
6. Please save template first.
The Next Step:
For those who have not fill Read More, find code:: <data:post.body>
replace the code <data:post.body> with all the code below
<b:if cond='data:blog.pageType != "item"'>
<div expr:id='"summary" + data:post.id'><data:post.body/></div>
<script type='text/javascript'>createSummaryAndThumb("summary<data:post.id/>");</script>
<span class='rmlink' style='float:left'><a expr:href='data:post.url'>READ MORE - <data:post.title/></a></span>
</b:if>
<b:if cond='data:blog.pageType == "item"'><data:post.body/></b:if>
For those who already have Read More, better return as before like no-Read More. Clear Read More code, as below.
<div class='post-header-line-1'/>
<div class='post-body'>
<b:if cond='data:blog.pageType == "item"'>
<style>.fullpost{display:inline;}</style>
<p><data:post.body/></p>
<b:else/>
<style>.fullpost{display:none;}</style>
<p><data:post.body/></p>
<a expr:href='data:post.url'>Readmore</a>
</b:if>
<div style='clear: both;'/>
Please Delete the Red Text.
Finish........
Description:
summary_noimg = 400;
(Showing 400 letters / characters that will appear before Read More if no picture is posted)
summary_img = 350;
(Showing 350 letters / characters that will appear before Read More if you have a picture posted)
0 comments:
Post a Comment