Twitter Facebook Google Plus LinkedIn NairaLand

App Review

SEO Tips

HowTos

Blog Tech

BlogerWidets

ShareCash

Blogger Widget: Related Post Wigdet for blogger










Related post is also one of the greatest blogger tool that increases visitors engagement like recent, random, popular post widget. Whatsapp has even came to blogger level which provided a widget that can chat with blogger support center.

Related posts widget is very important for a blog because it increases the number of page views and also helps the visitor to view other posts related to a blog post. I have being searching for this type of related post.

Don't mis my last post on the best pay per download platform
It displays post titles with little thumbnails nor snippet. As a result of that its fast loading, can display countless of post title, can show both in mobile and desktop view.
We called it related post so we put it right below every post on our blogs.

Step by step guide to add related post to blogger theme.


Log in to your blogger dashboardto => theme => Edit HTML

Press CTRL+ F to find </head>

Copy and paste the code below above the </head> tag.


<!--Prank related post widget-->
<style>
#related-posts {
float : left;
width : 350px;
margin-top:20px;
margin-left : 5px;
margin-bottom:20px;
font : 11px Verdana;
margin-bottom:10px;
}
#related-posts .widget {
list-style-type : none;
margin : 5px 0 5px 0;
padding : 0;
}
#related-posts .widget h2, #related-posts h2 {
font-size : 20px;
font-weight : normal;
margin : 5px 7px 0;
padding : 0 0 5px;
}
#related-posts a {
text-decoration : none;
}
#related-posts a:hover {
text-decoration : none;
}
#related-posts ul {
border : medium none;
margin : 10px;
padding : 0;
}
#related-posts ul li {
display : block;
background : url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhztr0Y6WQcXaNgDHpDkOL0qFSXCygQVHP0f76PRYqjDE0WCTt-EEXmNVjr5-dhrfFvO037-qUJ_rM9_nGn6-EojO8DQZkVmpONAIcqtWMrq6x7-Q1o9DiRrDI7TdbfYjU-yteKwFOyBdk/s200/greentickbullet.png) no-repeat 0 0;
margin : 0;
padding-top : 0;
padding-right : 0;
padding-bottom : 1px;
padding-left : 21px;
margin-bottom : 5px;
line-height : 2em;
border-bottom:1px dotted #cccccc;
}
</style>

<script type='text/javascript'>
//<![CDATA[
var relatedTitles = new Array();
var relatedTitlesNum = 0;
var relatedUrls = new Array();
function related_results_labels(json) {
for (var i = 0; i < json.feed.entry.length; i++) {
var entry = json.feed.entry[i];
relatedTitles[relatedTitlesNum] = entry.title.$t;
for (var k = 0; k < entry.link.length; k++) {
if (entry.link[k].rel == 'alternate') {
relatedUrls[relatedTitlesNum] = entry.link[k].href;
relatedTitlesNum++;
break;
}
}
}
}
function removeRelatedDuplicates() {
var tmp = new Array(0);
var tmp2 = new Array(0);
for(var i = 0; i < relatedUrls.length; i++) {
if(!contains(tmp, relatedUrls[i])) {
tmp.length += 1;
tmp[tmp.length - 1] = relatedUrls[i];
tmp2.length += 1;
tmp2[tmp2.length - 1] = relatedTitles[i];
}
}
relatedTitles = tmp2;
relatedUrls = tmp;
}
function contains(a, e) {
for(var j = 0; j < a.length; j++) if (a[j]==e) return true;
return false;
}
function printRelatedLabels() {
var r = Math.floor((relatedTitles.length - 1) * Math.random());
var i = 0;
document.write('<ul>');
while (i < relatedTitles.length && i < 20) {
document.write('<li><a href="' + relatedUrls[r] + '">' + relatedTitles[r] + '</a></li>');
if (r < relatedTitles.length - 1) {
r++;
} else {
r = 0;
}
i++;
}
document.write('</ul>');
document.write('<a href="http://www.zethag.com/2017/07/how-i-added-related-post-wigdet-to-both.html" target="_blank" rel="nofollow"><font size="1" color="black">[Get Related Posts Widget for Your Blog]</font></a>');
}
//]]>

</script>

<!--Related Posts Scripts and Styles End-->

Click save theme

Now you've done with the first hurdle


In the theme editor, press  CTRL+F to find this code line

class='post-footer-line post-footer-line-1'>

Now paste the RELATED POST codes below the line above


<div class='post-footer-line post-footer-line-1'>

Now paste the RELATED POST codes below the line above

<p class='post-footer-line post-footer-line-1'>

Now paste the RELATED POST codes below the line above



<!--  RELATED POST with Thumbnails Code Start-->
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div id='related-posts'>
<font face='Arial' size='3'><b>Related Posts: </b></font><font color='#FFFFFF'><b:loop values='data:post.labels' var='label'><data:label.name/><b:if cond='data:label.isLast != &quot;true&quot;'>,</b:if><b:if cond='data:blog.pageType == &quot;item&quot;'>
<script expr:src='&quot;/feeds/posts/default/-/&quot; + data:label.name + &quot;?alt=json-in-script&amp;callback=related_results_labels&amp;max-results=10&quot;' type='text/javascript'/></b:if></b:loop> </font>
<script type='text/javascript'> removeRelatedDuplicates(); printRelatedLabels();
</script>
</div>
</b:if>
<!-- Related Posts with Thumbnails Code End-->


Now save the theme and preview both desktop and mobile mode.


If you have any questions or recommendation please feel free drop your question in the comment section.

How To Integrate Instant WhatsApp Chat And Text SMS Support to blogger






 
    Plus                  
         



There many ways through which visitors connect with blog admins for some reasons. Visitors do connect with site admins though many means like adding facebook like box, Twitter flow button and LinkedIn widget, Instagram and so on. Tawk.to is a platform that let users create a simple widget and integrate it on blogs or website and have a live chating with support team, website like sharecash  that pays per download, referral and survey used this platform to chat with visitors right on their website, here comes whatsapp widget and text sms widget for blogger

Mis my last post on how show blogger widget on mobile veiw

Reason why bloggers should use this widget

Visitors might want to contact the blog owners for instant and immediate business negotiation, recommendation, comments, contract,  offer and so on. Not only that whatsapp has over 4 million active users which can visit your blog and send you messages or other file right from your blog or website.


How does it work? (Whatsapp Widget)
WhatsApp is one of the fastest and smoothest way to send and receive messages online, and even exchange document.

Once you've successfully install the codes I'm about to share with you in your blogger template.

With just a one-time click, your whatsapp messanger opens the chat area waiting for your messsage to be sent to the blog support center. See shots below





How to increase readers engagement using basic blogger widgets

The widget capability

Just like the regular whatsapp chat area allows you to;
- place a voice call through
- place video calls
- send attahements

Here is How To Integrate This Beautiful Codes To Blogger Template.

- In your blogger dashboard => Go to theme => edit theme

- Hit CTRL+F to find </body> code

Just Copy the below code and paste it before or above </body>

 <!-- whatsapp text support widget --><script type="text/javascript">    (function () {        var options = {            whatsapp: "+23490922067731", // WhatsApp number            company_logo_url: "//static.whatshelp.io/img/flag.png", // URL of company logo (png, jpg, gif)            greeting_message: "Hi! You are now connected with our blog support center. How may we be of help?", // Text of greeting message            call_to_action: "Message us", // Call to action            position: "right", // Position may be 'right' or 'left'        };        var proto = document.location.protocol, host = "whatshelp.io", url = proto + "//static." + host;        var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = url + '/widget-send-button/js/init.js';        s.onload = function () { WhWidgetSendButton.init(host, proto, options); };        var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x);    })();</script><!-- /whatsapp text support widget -->

Now personalize the codes
* Change the phone number stated in red to your own WhatsApp registered number alongside with your country code.

* Your greeting message (blue)that shows before visitors send their message.

* The widget position (brown) put either "Left" or "Right".

Once you are done, Save the theme.

Now preview your blog homepage, you will then see the whatsapp logo displayed at the downward level of the blog. On a tap on the logo, it open whatsapp messanger and sent whatever you want to send to the blog support center.
Mind you, it might not be visible on some browsers like operamini mobile. To see the widget live on your blog you can use mozila, crome, safari and any others.


SMS Text Message Widget for blogger

This widget is also necessary for blogger so as to let visitors connect with the blog support center through text messages.

The widget can;
* send text message to multiple numbers
* send attachment like multimedia and other files like book, apps and so on.


How it works


One-time click opens SMS area, and you are good to send whatever you like. See shots below





How to add the codes to blogger
The code can stand alone using blogger gadget and putting it inbetween blogger template.

The codes should be put in somewhere people will be able to see it like below menu or in the blog footer.

To put it below blog menu
=> Click on theme tap from blogger dashboard

=> Click edit theme, now find

=> Copy the below codes and paste it under

<center><div class="col-lg-12 col-md-12 col-sm-12" class="dp"><p> SMS/Whatsapp +2348160961848 <a href="sms:08160961848?body=...type your message here..."><button class="btn btn-primary"><h3>Send SMS</h3></button></a></p> </div> </center>

Change the position either <center> <right> or <left> but don't forget to close the position tag </center> </right> or </left>

Change the red line to the text you want; like Send Instant SMS or any other you might think of.

Change the blue line to the number you want to use to receive the sms

Change the brown line to the message to display (optional)

Change the green line to the text you want on the button (Optional)

To make button and the text size bigger, you can change the heading tag <h3></h3>. You can use <h1></h1>, <h2></h2>, <h3></h3>, <h4></h4>, <h5></h5>, <h6></h6>  (Optional)


=> Now save the theme and preview


To put it in the footer

In the theme editor => find your footer credits and look through for your footer links.

Now copy the codes and paste it after the link of your choice.

<center><div class="col-lg-12 col-md-12 col-sm-12" class="dp"><p> SMS/Whatsapp +2348160961848 <a href="sms:08160961848?body=...type your message here..."><button class="btn btn-primary"><h3>Send SMS</h3></button></a></p> </div> </center>

Change the position either <center> <right> or <left> but don't forget to close the position tag </center> </right> or </left>

Change the red line to the text you want like Send Instant SMS or any other you might think of.

Change the blue line to the number you want to use to receive the sms

Change the brown line to the message to display (optional)

Change the green line to the text you want on the button (Optional)

To make button size bigger, you can change the heading tag <h3></h3>. You can use <h1></h1>, <h2></h2>, <h3></h3>, <h4></h4>, <h5></h5>, <h6></h6>  (Optional)

Conclusion
All professional bloggers must add these widgets so as to show readers you know what your are doing. Visitors will also have their believe in you that you're not a fraudster or a scammer.

The most beautiful part of this whatsapp widget is not only that it displays whatsapp logo at the downward position of webpage, its even active when you are reading a blog post, and it has anything to do with your blog loading time.

Kindly come back to comment if you successfully add it and it works so as to let others do the same. Don't also forget to share with fellows...there is live in sharing.

How to show blogger gadgets on mobile veiw








Blogger provides loads of intresting tools for users to fine-tune or to make blogs function more than its expected to be or gadgets that increase readers engagement. There are many gadgets to choose from which each have different uses to blogger.
Gadget like;

Click to read my prev. Post on tips to write SEO friendly post

- popular posts displays the most read contents all the time, weekly and yearly to readers.
- Featured post gadget also displays a stand alone post to readers. Also there is an intresting gadget called html/javascript gadget which is used to display a third-party html function to blogs. A third-party html code like adsense, affiliate, or any html codes.

See how to increase reader engagement using basic blogger widgets

All gadgets added to blogger blog are restricted to show on desktop or pc view. A blogger monetizing his blog through adsense or affiliate needs to disply ads to visitors through ads codes which it should be added to blogger template or with the use of gadget (html/javascript). This ads will only show on desktop view but not on mobile version.

Showing blogger gadget on  mobile view is a best practice all blogger must know about if you want to increase your readers engagement, ad earnings, and so on.

How to enable blogger gadgets on mobile version

It is very simple and easy with the use of just a very short code [mobile='yes']. This tells the browser to show that particular gadget when it is viewed on  any kind of mobile device.

Now let see how to get that done.

Step 1
You must have set your template to show mobile template version
To get that done, click template from blogger dashboard

In the TEMPLATE page, click on the "gear" icon under the MOBILE preview shown.
We have two options at "On mobile devices, show a mobile version of your current template".

⊙ Yes. Show mobile template on mobile devices. (choose this option)

⊙ No. Show desktop template on mobile devices.



Click to choose "Yes. Show mobile template on mobile devices."

Choose a preffered mobile template (dynamic, picture window, awesome...) or choose "CUSTOM" to show the mobile version of your template.



Note:-
Custom adapts your template customization to mobile. Be sure to preview your template.

Click SAVE.

Once that is done we move to the next step.

Step 2
In the same blogger dashboard, click on layout to add a gadget anywhere you wan it.



Step 3
Assuming you are adding Html/javascript gadget, a page opens automatically where you will have to insert html codes to your blog



Now pay attention to the gadget id. To get the id, just chech its address bar, you see the link to that particular gadget, at the end of the link you see the id 'HTML 8' if you choose to add gadget for html/javascript its id will be something like HTML 4, HTML 6, HTML10, HTML 8, and so on just note down the ID and save your settings.



Step 4

To display Blogger gadget viewable on desktops to also appear on mobile devices, do the following:

1. Still the same blogger dashboard, click on Template and then on Edit HTML

2. Once the template editor opens click "Jump To Widget", click on the widget you are interested to be viewable on mobile... using HTML 8 for example.



We'll come to a code that looks like the one below. Its the codes automatically added by blogger to make it function after adding the gadget

<b:widget id='HTML 8' locked='false' title='Adsense' type='Label' visible='true'>

To show this widget on mobile devices, just add "mobile='yes'' immediately after ...locked='false' . So it now looks like:

<b:widget id='HTML 8' locked='false' mobile='yes' title='Adsense' type='Label' visible='true'>

Note- there should be just a single space before putting the code.

Repeat the above steps for any other gadgets which you would like to display on mobile devices.

3. After enabling all the gadgets you need, SAVE TEMPLATE

Just go ahead to view your blog with those gadget showing on mobile devices.

After saving the changes, open the blog on mobile device and check. The widgets you enabled will now be displayed on the mobile device . This includes widgets such as popular posts, labels, others and even Google Adsense code added through HTML/JAVASCRIPT widgets.

Dont forget to share to fellow bloggers. In a sentence, there is love in sharing.

How to increase reader's engagement using basic blogger widgets










People visit blogs because of a sole reason of seeking information about a particular topic and leave after being satisfied.
You are you are then concerned about readers just reading a post on your blog and leave without visiting order older or newer posts. Older posts or newer posts can be automatically shown to readers in different ways. Check my last post on Manually improve search engine ranking
Have you ever visit a blog that has many gadget Popular, random, featured posts and so on displayed in the side  or above or below main blog posts. I will show you how to do this with simple blogger widgets.

There are so many blogger widgets that keep readers to read more of your posts. Some bloggers don't know about this and it really help my blog to gain more engagement from visitors and from search engine.

I will show you how to get this done without tweaking or altering blogger template, its very simple and easy. I will be refferring to just three widgets
#1 Featured Post widget
#2 Popular Posts widget
#3 Random Posts widget


The important of these widgets is that
 * It keep readers to stay a long while on blogs
 * It makes blog faser and responsive - everybody even I love a very fast loading blogs
 * It reduces bounce back rate
 * It consume lesser boundwith - some readers are economize when its comes data usage, they will love to be well satisfied with scarce resources
 * Blogger images were well optimized - instead of blogger to load larger image sizes the images in these widgets were smaller and fast loading.

1. How to add featured post widget to blogger
Log on to blogger dashboard -> Layout -> Add gadget excactly where you want it to be shown advised right above main posts. Then click Add gadget ->  Featured post. Then you are prompt to choose your preffered post as featured.







Slider Featured posts with title and image


Layout -> Add gadget excactly where you want it to be shown advised right under main posts. Then click Add gadget -> Html/javascript paste this code in the html box


"
<style type="text/css">
ul.featured-widget-list,ul.featured-widget-list li{margin:0;padding:0;list-style:none;position:relative }ul.featured-widget-list li{display:none}ul.featured-widget-list li:nth-child(1){display:block;line-height:0}ul.featured-widget-list img{border:0;width:100%;height:auto}ul.featured-widget-list .featuredbg{width:100%;height:100%;position:absolute;z-index:2;left:0;top:0;opacity:.6;background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlEHchcs9M8yQxn5lTppYd_9sVhgjdoQTah_CZU8frRWkD0vptM4sMsu2zj1XA6N6VvmsvotBmceHn_qlGAaS1WJCw34n_A9Ywc_LdDwQUaszQxIjPVslY_3LmQ-o09hfUmcoAECBagH4/s400/overlay-bg.png);background-position:0% 100%;background-repeat:repeat-x}ul.featured-widget-list .featuredbg:hover{opacity:.1}ul.featured-widget-list h5{position:absolute;left:0;right:0;text-align:center;bottom:10px;z-index:2;color:#fff;margin:0;text-transform: capitalize;padding:10px 20px;line-height:1.9em;letter-spacing:0.3px;font: 600 16px 'Abel', sans-serif;overflow:hidden}ul.featured-widget-list li:hover h5{bottom:30px}ul.featured-widget-list .featured-meta{font: 11px 'Abel', sans-serif;letter-spacing:0.3px;position:absolute;bottom:0;left:0;right:0;text-align:center;z-index:2;color:#fff;opacity:0}ul.featured-widget-list h5, ul.featured-widget-list .featured-meta {-webkit-transition: all 0.3s;-moz-transition: all 0.3s;-o-transition: all 0.3s;transition: all 0.3s;}ul.featured-widget-list li:hover .featured-meta{bottom:20px;opacity:1}.feat-buttons{position:absolute;top:50%;left:0;z-index:5;width:100%}
.feat-buttons a{text-indent:-9999px;margin:0 7px;width:15px;height:15px;padding:5px;background:#000;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";filter: alpha(opacity=60);-moz-opacity:0.6;-khtml-opacity:0.6;opacity:0.6;position:relative;-webkit-border-radius: 50%;-moz-border-radius: 50%;border-radius: 50%;}.feat-prev{float:left;}.feat-next{float:right;}.feat-buttons a.feat-prev::before, .feat-buttons a.feat-next::before{content:"";width:0;height:0;border-width:6px 7px;border-style:solid;border-color:transparent #fff transparent transparent;position:absolute;top:50%;margin-top:-6px;margin-left:-11px;left:50%}
.feat-buttons a.feat-next::before{border-color:transparent transparent transparent #fff;margin-left:-3px}
</style>
<div id="featuredbwidget"></div>
<link href='https://fonts.googleapis.com/css?family=Abel' rel='stylesheet' type='text/css'/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script>
<script type='text/javascript'>
//<![CDATA[
featuredbwidget({
listURL:"https://pranktech.blogspot.com/",
featuredNum:9,
listbyLabel:false,
feathumbSize:350,
interval:3000,
autoplay:true,
featuredID:"#featuredbwidget"
});
function featuredbwidget(a){(function(e){var h={listURL:"",featuredNum:3,featuredID:"",feathumbSize:300,interval:5000,autoplay:false,loadingFeatured:"nextfeatured",pBlank:"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgf81ffYNxS_J7CdITPAHfJvpmvToKDlXzzZNa-HDrxHSi8zjo3oPbb6J_1DokrHtjm1cY1kQQrTUbWuhr_NbLWvEukNJ9VeAQgNGqa4qo5X-FijT54jcBrnM60Cual-LfvoNAB9NJWi30/s500/no-image.png",byMonth:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],listbyLabel:false};h=e.extend({},h,a);var g=e(h.featuredID);var d=h.featuredNum*200;g.html('<div class="featslider"><ul class="featured-widget-list"></ul><div class="feat-buttons"><a href="#" class="feat-prev">Prev</a><a href="#" class="feat-next">Next</a></div></div>');var f=function(w){var q,k,m,u,x,p,t,v,r,l="",s=w.feed.entry;for(var o=0;o<s.length;o++){for(var n=0;n<s[o].link.length;n++){if(s[o].link[n].rel=="alternate"){q=s[o].link[n].href;break}}if("media$thumbnail" in s[o]){u=s[o].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/s"+h.feathumbSize+"-c")}else{u=h.pBlank.replace(/\/s[0-9]+(\-c|\/)/,"/s"+h.feathumbSize+"$1")}k=s[o].title.$t;r=s[o].published.$t.substring(0,10);m=s[o].author[0].name.$t;x=r.substring(0,4);p=r.substring(5,7);t=r.substring(8,10);v=h.byMonth[parseInt(p,10)-1];l+='<li><a href="'+q+'"><div class="featuredbg"></div><img class="featuredthumb" src="'+u+'"/><h5>'+k+'</h5></a><div class="featured-meta"><span class="fdate"><span class="fday">'+t+'</span> <span class="fmonth">'+v+'</span> <span class="fyear">'+x+'</span></span> - <span class="fauthor">'+m+"</span></div></li>"}e("ul",g).append(l).addClass(h.loadingFeatured)};var c=function(){e(h.featuredID+" .feat-next").click()};var b=function(){e.get((h.listURL===""?window.location.protocol+"//"+window.location.host:h.listURL)+"/feeds/posts/summary"+(h.listbyLabel===false?"":"/-/"+h.listbyLabel)+"?max-results="+h.featuredNum+"&orderby=published&alt=json-in-script",f,"jsonp");setTimeout(function(){e(h.featuredID+" .feat-prev").click(function(){e(h.featuredID+" .featslider li:first").before(e(h.featuredID+" .featslider li:last"));return false});e(h.featuredID+" .feat-next").click(function(){e(h.featuredID+" .featslider li:last").after(e(h.featuredID+" .featslider li:first"));return false});if(h.autoplay){var i=h.interval;var j=setInterval(c,i);e(h.featuredID+" .featslider li:first").before(e(h.featuredID+" .featslider li:last"));e(h.featuredID+" .featslider").hover(function(){clearInterval(j)},function(){j=setInterval(c,i)})}e("ul",g).removeClass(h.loadingFeatured)},d)};e(document).ready(b)})(jQuery)};
//]]>
</script>

Customization

* listURL - replace "https://pranktech.blogspot.com/" with your blog URL

*featuredNum - add the number of posts to display in the slider

*listbyLabel - if you want to display posts by category / label, such as the tag fashion, it will be written as listbyLabel: "fashion"

* feathumbSize - the size or dimension of the image in pixels

* interval - time taken to change the slides position in milliseconds

* autoplay - replace true with false if you don't want the slides to change automatically.
3. Once you are done with the settings, click the 'Save' button.


2. How to add Popular posts widget to blogger without code.
Doing the same thing, click on layout on blogger dashboard -> add gadget ->


 then click on popular post widget.

You will then be directed to where you will  customize it

1. Sign into your blogger account and go to the “ Layout ” section.
2. Go to the sidebar section and click on the “ Add a Gadget ” link.
3. A popup window will appear. Choose “ Popular Posts ” gadget from the list. Click on the plus button to add it to your blog.
4. Now it’s time to configure the widget. From this configuration section, you will be asked to choose the most viewed posts of your blog. How many post you want to show with or without page thumbnail and snippet. Different popular post design requires different configuration so leave it as default for now. I will show what configuration needs for every widget later. Add the popular post widget by clicking on the “ Save ” button.
After clicking on the save button, you will see the default popular post widget is added to your blogger blog. If you are using custom blogger templates then you will get a popular post widget design based on your template.





3. How to add Random post widget to blogger
Log on to blogger dashboard -> Layout -> Add gadget excactly where you want it to be advised right under main posts. Then click Add gadget -> JavaScript / html now copy the below codes and paste in the html box. You can name it 'Readers Picks', 'Admins Picks', 'Ramdom Post'

"
<style>
#random-posts img {
border-radius: 5px;
float: left;
margin-right: 5px;
width: 75px ;
height: 75px ;
background-color: #F5F5F5;
padding: 3px;
transition: all 0.2s linear 0s;
}
#random-posts img:hover {
opacity: 0.6;
}
ul#random-posts {
list-style-type: none;
padding: 0px;
}
#random-posts a {
font-size: 12px ;
text-transform: uppercase;
padding: 0px auto 5px;
}
#random-posts a:hover {
text-decoration: none;
}
.random-summary {
font-size: 11px ;
background: none;
padding: 5px;
margin-right: 8px;
}
#random-posts li {
margin-bottom: 10px;
border-bottom: 1px solid #EEEEEE;
padding: 4px;
}
</style>
<ul id='random-posts'>
<script type='text/javaScript'>
var randomposts_number = 10 ;
var randomposts_chars = 110 ;
var randomposts_details = ' yes ';
var randomposts_comments = 'Comments';
var randomposts_commentsd = 'Comments Disabled';
var randomposts_current = [];
var total_randomposts = 0;
var randomposts_current = new Array(randomposts_number);
function randomposts(json) { total_randomposts = json.feed.openSearch$totalResults.$t}document.write('<script type=\"text/javascript\" src=\"/feeds/posts/default?alt=json-in-script&max-results=0&callback=randomposts\"><\/script>');
function getvalue() {
for (var i = 0; i < randomposts_number; i++) {
var found = false;
var rndValue = get_random();
for (var j = 0; j < randomposts_current.length; j++) {
if (randomposts_current[j] == rndValue) {
found = true;
break
}
};
if (found) {
i--
} else {
randomposts_current[i] = rndValue
}
}
};
function get_random() { var ranNum = 1 + Math.round(Math.random() * (total_randomposts - 1));
return ranNum
};
</script>
<script type='text/javaScript'>
function random_posts(json) {
for (var i = 0; i < randomposts_number; i++) {
var entry = json.feed.entry[i];
var randompoststitle = entry.title.$t;
if ('content' in entry) {
var randompostsnippet = entry.content.$t
} else {
if ('summary' in entry) {
var randompostsnippet = entry.summary.$t
} else {
var randompostsnippet = "";
}
};
randompostsnippet = randompostsnippet.replace(/<[^>]*>/g, "");
if (randompostsnippet.length < randomposts_chars) {
var randomposts_snippet = randompostsnippet
} else {
randompostsnippet = randompostsnippet.substring(0, randomposts_chars);
var whitespace = randompostsnippet.lastIndexOf(" ");
randomposts_snippet = randompostsnippet.substring(0, whitespace) + "&#133;";
};
for (var j = 0; j < entry.link.length; j++) {
if ('thr$total' in entry) {
var randomposts_commentsnum = entry.thr$total.$t + ' ' + randomposts_comments
} else {
randomposts_commentsnum = randomposts_commentsd
}; if (entry.link[j].rel == 'alternate') {
var randompostsurl = entry.link[j].href;
var randomposts_date = entry.published.$t;
if ('media$thumbnail' in entry) {
var randompoststhumb = entry.media$thumbnail.url
} else {
randompoststhumb = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyOyw1mwAbM8LIC0NF7L8NrfIqjSc3UNWWbG57uuJFoF6-FZmF6x8bU2RRR4n0DPWqepHgfRV2vq_22MVQPsVOySgjbvjPJNaUDaC7E-PYBIb4TJCUCb_8nHs22uL8AwskIZ6SbhynHeU/s1600/no_thumb.png"
}
}
}; document.write('<li>');
document.write('<a href="' + randompostsurl + '" rel="nofollow"><img alt="' + randompoststitle + '" src="' + randompoststhumb + '"/></a>');
document.write('<div><a href="' + randompostsurl + '" rel="nofollow">' + randompoststitle + '</a></div>');
if (randomposts_details == 'yes') {
document.write('<span><div class="random-info">' + randomposts_date.substring(8, 10) + '.' + randomposts_date.substring(5, 7) + '.' + randomposts_date.substring(0, 4) + ' - ' + randomposts_commentsnum) + '</div></span>'
};
document.write('<br/><div class="random-summary">' + randomposts_snippet + '</div><div style="clear:both"></div></li>')
}
};
getvalue();
for (var i = 0; i < randomposts_number; i++) {
document.write('<script type=\"text/javascript\" src=\"/feeds/posts/default?alt=json-in-script&start-index=' + randomposts_current[i] + '&max-results=1&callback=random_posts\"><\/script>')
};
</script>
</ul>
"
Search for the below code and change the number of posts to your desired "var randomposts_number = 10"
Then save it.

Preview sample


How to show gadgets on mobile version

Best Practices to make a blog xxfaster
Instead of displaying countless posts on the home page you can reduce the number of posts to maybe from 5 posts to 10 posts.
If your blogger template displays higher quality of image you can optimize it by reducing the post image size by tweaking your template if you know about html /css.

Having done that, you will have to rearrange those widgets accordingly.
Featuted post first, followed by Main blog post, followed by Popular post, and then random posts.
Done with the arrangement? Now click on 'Save arrangement' on the right top corner.

See the sample here @ pranktech

NB
Those widget can only be seen and active in blogger desktop version, see how to enable any gadget on blog's mobile version.