How Add Random posts Widget to blogger new way 2014

Add Random posts Widget to blogger :

                                                           When you making regular posts in your blog the visitor visit new post and  ignore old posts so for we have way to show your old posts on side bar of your blog by adding a gadget.
So this process will occur in few steps:

1st Step:

             First of all open your blog dashboard and then click on  Layout and then click on Add a Gadget

2nd Step:

             In second step Add new HTML/JavaScript Gadget as given below.

3rd Step: 

            In the third step Add the following HTML Code in your Gadget HTML box .

 <style>
#random-posts img{float:left;margin-right:10px;
width:65px;height:50px;background-color: #F5F5F5;padding: 3px;}
ul#random-posts {list-style-type: none;}
</style>

<ul id='random-posts'>
<script type='text/javaScript'>
var rdp_numposts=5;
var rdp_snippet_length=150;
var rdp_info='yes';
var rdp_comment='Comments';
var rdp_disable='Comments Disabled';
var rdp_current=[];var rdp_total_posts=0;var rdp_current=new Array(rdp_numposts);function totalposts(json){rdp_total_posts=json.feed.openSearch$totalResults.$t}document.write('<script type=\"text/javascript\" src=\"/feeds/posts/default?alt=json-in-script&max-results=0&callback=totalposts\"><\/script>');function getvalue(){for(var i=0;i<rdp_numposts;i++){var found=false;var rndValue=get_random();for(var j=0;j<rdp_current.length;j++){if(rdp_current[j]==rndValue){found=true;break}};if(found){i--}else{rdp_current[i]=rndValue}}};function get_random(){var ranNum=1+Math.round(Math.random()*(rdp_total_posts-1));return ranNum};
</script>
<script type='text/javaScript'>
function random_posts(json){for(var i=0;i<rdp_numposts;i++){var entry=json.feed.entry[i];var rdp_posttitle=entry.title.$t;if('content'in entry){var rdp_get_snippet=entry.content.$t}else{if('summary'in entry){var rdp_get_snippet=entry.summary.$t}else{var rdp_get_snippet="";}};rdp_get_snippet=rdp_get_snippet.replace(/<[^>]*>/g,"");if(rdp_get_snippet.length<rdp_snippet_length){var rdp_snippet=rdp_get_snippet}else{rdp_get_snippet=rdp_get_snippet.substring(0,rdp_snippet_length);var space=rdp_get_snippet.lastIndexOf(" ");rdp_snippet=rdp_get_snippet.substring(0,space)+"&#133;";};for(var j=0;j<entry.link.length;j++){if('thr$total'in entry){var rdp_commentsNum=entry.thr$total.$t+' '+rdp_comment}else{rdp_commentsNum=rdp_disable};if(entry.link[j].rel=='alternate'){var rdp_posturl=entry.link[j].href;var rdp_postdate=entry.published.$t;if('media$thumbnail'in entry){var rdp_thumb=entry.media$thumbnail.url}else{rdp_thumb="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLyaHQhT00vvPonsiGqOfi92dkXd4gff5hMprJA3sYD0YjUZQlENWcFtiT8zssor1oNCv-5v0Mr-EmBq_gWCn253KFY3AqQZp4VL1ImqabuKpc6BCHBGe57rAtvRLX8nPQGFSnzvblbbs/s1600/no_thumb.png"}}};document.write('<li>');document.write('<img alt="'+rdp_posttitle+'" src="'+rdp_thumb+'"/>');document.write('<div><a href="'+rdp_posturl+'" rel="nofollow" title="'+rdp_snippet+'">'+rdp_posttitle+'</a></div>');if(rdp_info=='yes'){document.write('<span>'+rdp_postdate.substring(8,10)+'/'+rdp_postdate.substring(5,7)+'/'+rdp_postdate.substring(0,4)+' - '+rdp_commentsNum)+'</span>'}document.write('<div style="clear:both"></div></li>')}};getvalue();for(var i=0;i<rdp_numposts;i++){document.write('<script type=\"text/javascript\" src=\"/feeds/posts/default?alt=json-in-script&start-index='+rdp_current[i]+'&max-results=1&callback=random_posts\"><\/script>')};
</script>
</ul>

In the given HTML code The 5 represent the Number of post that you want to show in the Gadget .
And the width; 65px  and height;  50px  is for the size of the thumbnail size of the post that you can change .

4th Step:

           In this step click on save button and the the gadget is displayed .
If you have any problem about this you can comments below...

Thank you !

How add Multi colored Popular posts to blog

Hello,
           Today i am gonna to show you that how we can use multi colored popular posts .So the popular posts are those which most visited in your blog or site.So we want to display them in different colors.
So for we use some CSS codes to change them.as in the given image.                                                        


This will complete in a few steps.

1st Step:

            So of all go to your blogger dashboard and then go to Template and then go to Edit HTML.

2nd Step:

           In this step click on (Expand Widget Template) .

3rd Step:

              In this step search for the following tag as given below...


 /* Variable definitions
   ====================

So if this have some problem in searching you can't find it the paste it below autor information that is usually below this tag 


  <b:skin><![CDATA[/* 


This should end up with the this symbol 


  ----------------------------------------------- */


4th Step:


              In the 4th step paste the given HTML codes below the above codes.

 <Group description="PopularPosts Backgrounds" selector="#PopularPosts1">
<Variable name="PopularPosts.background.color1" description="background color1" type="color" default="#fa4242" value="#ff4c54"/>
<Variable name="PopularPosts.background.color2" description="background color2" type="color" default="#ee6107" value="#ff764c"/>
<Variable name="PopularPosts.background.color3" description="background color3" type="color" default="#f0f" value="#ffde4c"/>
<Variable name="PopularPosts.background.color4" description="background color4" type="color" default="#ff0" value="#c7f25f"/>
<Variable name="PopularPosts.background.color5" description="background color5" type="color" default="#0ff" value="#33c9f7"/>
</Group>



5th Step :


               in this step search for the following code.

 ]]></b:skin>

and above it add the following codes  as below.......



 #PopularPosts1 ul{margin:0;padding:5px 0;list-style-type:none}
#PopularPosts1 ul li{position:relative;margin:5px 0;border:0;padding:10px}
#PopularPosts1 ul li:first-child{background:$(PopularPosts.background.color1);width:90%}
#PopularPosts1 ul li:first-child:after{content:"1"}
#PopularPosts1 ul li:first-child + li{background:$(PopularPosts.background.color2);width:85%}
#PopularPosts1 ul li:first-child + li:after{content:"2"}
#PopularPosts1 ul li:first-child + li + li{background:$(PopularPosts.background.color3);width:80%}
#PopularPosts1 ul li:first-child + li + li:after{content:"3"}
#PopularPosts1 ul li:first-child + li + li + li{background:$(PopularPosts.background.color4);width:75%}
#PopularPosts1 ul li:first-child + li + li + li:after{content:"4"}
#PopularPosts1 ul li:first-child + li + li + li + li{background:$(PopularPosts.background.color5);width:70%}
#PopularPosts1 ul li:first-child + li + li + li + li:after{content:"5"}
#PopularPosts1 ul li:first-child:after,#PopularPosts1 ul li:first-child + li:after,#PopularPosts1 ul li:first-child + li + li:after,#PopularPosts1 ul li:first-child + li + li + li:after,#PopularPosts1 ul li:first-child + li + li + li + li:after{position:absolute;top:20px;right:-15px;border-radius:50%;background:#353535;width:30px;height:30px;line-height:1em;text-align:center;font-size:28px;color:#fff}
#PopularPosts1 ul li .item-thumbnail{float:left;border:0;margin-right:10px;background:transparent;padding:0;width:40px;height:40px}
#PopularPosts1 ul li a{font-size:12px;color:#444;text-decoration:none}
#PopularPosts1 ul li a:hover{color:#222;text-decoration:none}

6th Step:

              In this step find the following HTML codes.

 <b:widget id='PopularPosts1' locked='false' title='Popular Posts' type='PopularPosts'>
And Delete this until you reach on this tag as "delete the </b:widget>also):

 </b:widget>
Keep in Mind that after this the entire fragment of the HTML code should appear like this as .


 <b:widget id='PopularPosts1' locked='false' title='Popular Posts' type='PopularPosts'>
<b:includable id='main'>
  <b:if cond='data:title'><h2><data:title/></h2></b:if>
  <div class='widget-content popular-posts'>
    <ul>
      <b:loop values='data:posts' var='post'>
      <li>
        <b:if cond='data:showThumbnails == &quot;false&quot;'>
          <b:if cond='data:showSnippets == &quot;false&quot;'>
            <!-- (1) No snippet/thumbnail -->
            <a expr:href='data:post.href'><data:post.title/></a>
          <b:else/>
            <!-- (2) Show only snippets -->
            <div class='item-title'><a expr:href='data:post.href'><data:post.title/></a></div>
            <div class='item-snippet'><data:post.snippet/></div>
          </b:if>
        <b:else/>
          <b:if cond='data:showSnippets == &quot;false&quot;'>
            <!-- (3) Show only thumbnails -->
            <div class='item-thumbnail-only'>
              <b:if cond='data:post.thumbnail'>
                <div class='item-thumbnail'>
                  <a expr:href='data:post.href' target='_blank'>
                    <img alt='' border='0' expr:height='data:thumbnailSize' expr:src='data:post.thumbnail' expr:width='data:thumbnailSize'/>
                  </a>
                </div>
              </b:if>
              <div class='item-title'><a expr:href='data:post.href'><data:post.title/></a></div>
            </div>
            <div style='clear: both;'/>
          <b:else/>
            <!-- (4) Show snippets and thumbnails -->
            <div class='item-content'>
              <b:if cond='data:post.thumbnail'>
                <div class='item-thumbnail'>
                  <a expr:href='data:post.href' target='_blank'>
                    <img alt='' border='0' expr:height='data:thumbnailSize' expr:src='data:post.thumbnail' expr:width='data:thumbnailSize'/>
                  </a>
                </div>
              </b:if>
              <div class='item-title'><a expr:href='data:post.href'><data:post.title/></a></div>
              <div class='item-snippet'><data:post.snippet/></div>
            </div>
            <div style='clear: both;'/>
          </b:if>
        </b:if>
      </li>
      </b:loop>
    </ul>
    <b:include name='quickedit'/>
  </div>
</b:includable>
</b:widget>

7th Step:

              In this step you replace the above HTML code with the following codes.

 <b:widget id='PopularPosts1' locked='false' title='Popular Posts' type='PopularPosts'>
<b:includable id='main'>
   <b:if cond='data:title'>
    <h2><data:title/></h2>
   </b:if>
   <div class='widget-content popular-posts'>
    <ul>
     <b:loop values='data:posts' var='post'>
      <li>
       <b:if cond='data:showThumbnails == &quot;false&quot;'>
        <b:if cond='data:showSnippets == &quot;false&quot;'>
         <a expr:href='data:post.href' expr:title='data:post.title' rel='bookmark'><data:post.title/></a>
        <b:else/>
         <a expr:href='data:post.href' expr:title='data:post.snippet' rel='bookmark'><data:post.title/></a>
        </b:if>
       <b:else/>
        <b:if cond='data:showSnippets == &quot;false&quot;'>
         <b:if cond='data:post.thumbnail'>
          <img class='item-thumbnail' expr:alt='data:post.title' expr:src='data:post.thumbnail'/>
         <b:else/>
          <img alt='no image' class='item-thumbnail' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3oHssMhH71t51FbIYhFO1wcw3t47OKOGzbz3_PmmUfUmBxtwSTm3BzDvxzF4jtHePMR5iq-WsgkotdsiZQMk65zhfpN0HWuB2vDhp9UuXVjjb-rU5yz89yQr20-N500yqHIYDZJR4ung/s1600/default.jpg'/>
         </b:if>
         <a expr:href='data:post.href' expr:title='data:post.title' rel='bookmark'><data:post.title/></a>
         <div class='clear'/>
        <b:else/>
         <b:if cond='data:post.thumbnail'>
          <img class='item-thumbnail' expr:alt='data:post.title' expr:src='data:post.thumbnail'/>
         <b:else/>
          <img alt='no image' class='item-thumbnail' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3oHssMhH71t51FbIYhFO1wcw3t47OKOGzbz3_PmmUfUmBxtwSTm3BzDvxzF4jtHePMR5iq-WsgkotdsiZQMk65zhfpN0HWuB2vDhp9UuXVjjb-rU5yz89yQr20-N500yqHIYDZJR4ung/s1600/default.jpg'/>
         </b:if>
         <a expr:href='data:post.href' expr:title='data:post.snippet' rel='bookmark'><data:post.title/></a>
         <div class='clear'/>
        </b:if>
       </b:if>
      </li>
     </b:loop>
    </ul>
   </div>
  </b:includable>
</b:widget>

Last Step :

                    Click on the Save Template.
After this the setting is that go to Layout and click on the edit link of popular posts widget and then click on
(Display up to 5 posts ) and then save the widget.as in the screen.
So of you want to change the background color of the popular posts  widget you can easily change them as 
Go to Template and then go to Customize and then go to Advance and then popular post Background and then there you can change the color of background as you want.
So you have done this .
If you have any problem about this post you can comments below..
Thank you !

How Add Different Background color or an Image in backgroung of each blog post

How Change the background of the blogger post:


                                                         When you want to modify your blogger posts by using different treks this is one them.So i am gonna to show you that how we can change the background of the blogger post.So this is very easy to change the background of blogger posts.

1st step:

 So when writing the new article(Post) in blog then click on the HTML Near the Compose tab and then add the following code at the beginning and at the end of the post content.

 <div style="background-color: #DCC368; padding: 5px 8px 5px 8px;">
Your text goes here...
</div>

the above red line will add at the Beginning of the post .
and the Blue at the end of the post.
The Green part replace with your own color.
This background color you can change later on the published posts and also can remove this .
                            

 2nd Step:

              How to add an image in background of post and for add the following codes at the beginning and at the end of the post content .as in above.


 <div style="background-image: url(IMAGE-URL-HERE); background-repeat: no-repeat; ">
Your text goes here...
</div>
 Paste the URL address of your hosted Picture instead of of green text.
The red color add at the beginning of the post.
the blue color add at the end of the post and then click on publish and this will occur.
If you have any problem about this you can comments below..

Thank you !