In the previous post, Wonderful-Tricks has discussed about how to create the widget of News & Update, but many readers wonder how to install the widget of News & Update under post? hmmmm… I got an idea to discuss.
To install the widget of News & Update under post, in principle, it has the same way when we install it on sidebar, but the difference is we have to do it through Edit HTML and you cannot do it through Page Element, and the code should be parsed before.
You should note that, this Widget will be better installed at the blogs that has used the read more function as the trick that Wonderful-Tricks has posted at Make a Post Summary (Read more Function). Or else, the widget of News & Update will be directly displayed in front page so that it will reduce the beauty of your blog.
To the point, below are the steps:
#kotak {
background: #fff;
width: 200px;
color: #000000;
font-size: 12px;
font-family: Arial, Tahoma, Verdana;
font-weight: normal;
margin: 10px 0px 0px 0px;
padding: 3px;
border-top: 1px solid #666666;
border-right: 1px solid #ddd;
border-left: 1px solid #666666;
border-bottom: 1px solid #ddd;
display: inline;
}
#tombol {
background: #2B74B4;
color: #FFFFFF;
font-size: 11px;
font-family: Arial, Tahoma, Verdana;
margin: 0px 0px 0px 5px;
padding: 2px;
border: 1px solid #234B69;
font-weight: bold;
}
#email{
background: #FFFFFF;
color: #000000;
font-size: 12px;
font-family: Arial, Tahoma, Verdana;
margin: 0px;
padding: 4px;
border-top: 1px solid #666666;
border-right: 1px solid #DDDDDD;
border-left: 1px solid #666666;
border-bottom: 1px solid #DDDDDD;
}
#submit {
background: #2B74B4;
color: #FFFFFF;
font-size: 12px;
font-family: Arial, Tahoma, Verdana;
padding: 4px;
margin: 0px;
border: 1px solid #234B69;
}
<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/>
<a expr:href='data:post.url'><strong>Read more...</strong></a></p> </b:if>
<b:if cond='data:blog.pageType == "item"'><style>.fullpost{display:inline;}</style><p><data:post.body/><div style='padding:10px;margin:10px 0px 10px 0px;background:#eee;text-align:left;border:1px solid #ddd'> <p>Insert your email address to receive updates on my Blogspot tutorial, Free Template and Site Info.</p> <form id="subscribe" action="http://www.feedburner.com/fb/a/emailverify" target="popupwindow" method="post" onsubmit="window.open('http://www.feedburner.com', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true"><input id="kotak" onfocus="if (this.value == 'Enter your email address...') {this.value = '';}" value="Enter your email address..." name="email" onblur="if (this.value == '') {this.value = 'Enter your email address...';}" type="text"/><input value="http://feeds.feedburner.com/~e?ffid=2078972" name="url" type="hidden"/><input value="Subcribe To My Blog" name="title" type="hidden"/><input id="tombol" value="Subcribe" type="submit"/></form> </div></p> <b:else/> <style>.fullpost{display:none;}</style> <p><data:post.body/></p><a expr:href='data:post.url'><strong> Read more...</strong></a></b:if>
For those who have followed the tutorial from Kang Rohman at the article of Creating News & Update Widget, skip the step 7, because it is the same.
ADVERTISEMENTS
Please Note: Before Editing your Template, Save a copy of your current template by clicking 'Download Full Template' in 'Edit HTML' page of the Blogger 'Layout' Window and 'Preview' the changes before Saving
0 comments