Showing posts with label Blogging Tips. Show all posts
Showing posts with label Blogging Tips. Show all posts

Monday, July 24, 2017

How to add sitemap widget to a blogger blog




Sitemap is the most essential thing which every blogger should add in his/her blog. Its not just a page but helps a lot to reduce bounce rate immediately by providing direct navigation to label specific post. The sitemap widget we're going to add today shows a list of articles on the latest published order under each categories, This widget is based on ajax so it will load blazing fast and will not affect the performance of your blog. Lets move further and see How to Add Sitemap Widget In Blogspot Blogs. You can check a live preview of the Author Box widget by clicking the button below.

Let's Start Step-1 ( Adding CSS

Before Editing we recommend you to make a backup of your template, so that anything goes wrong you still have your blog design safe.
The First thing you need to do is to login into your Blogger account and go to >> Templates >> Edit HTML and search for the ending ]]></b:skin> tag and just above it paste the following code.

/* ######## Navigation Menu Css by infocity.c ######################### */
.mapasite {
    margin-bottom: 10px;
    background-color: #F8F8F8
}
.mapasite.active .mapa {
    display: block
}
.mapasite .mapa {
    display: none
}
.mapasite h2 {
    background-color: #EEE;
    color: $(primary.color);
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 2px;
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 700
}
.mapasite h2 .botao {
    font-size: 18px;
    line-height: 1.2em
}
.botao .fa-minus-circle {
    color: #f30
}
.mapapost {
    overflow: hidden;
    margin-bottom: 20px;
    height: 70px;
    background-color: #FFF
}
.mapa {
    padding: 40px
}
.map-thumb {
    background-color: #F0F0F0;
    padding: 10px;
    display: block;
    width: 65px;
    height: 50px;
    float: left
}
.map-img {
    width: 65px;
    height: 50px;
    overflow: hidden;
    border-radius: 2px
}
.map-thumb a {
    width: 100%;
    height: 100%;
    display: block;
    transition: all .3s ease-out!important;
    -webkit-transition: all .3s ease-out!important;
    -moz-transition: all .3s ease-out!important;
    -o-transition: all .3s ease-out!important
}
.map-thumb a:hover {
    -webkit-transform: scale(1.1) rotate(-1.5deg)!important;
    -moz-transform: scale(1.1) rotate(-1.5deg)!important;
    transform: scale(1.1) rotate(-1.5deg)!important;
    transition: all .3s ease-out!important;
    -webkit-transition: all .3s ease-out!important;
    -moz-transition: all .3s ease-out!important;
    -o-transition: all .3s ease-out!important
}
.mapapost .wrp-titulo {
    padding-top: 10px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3em;
    padding-left: 25px;
    padding-right: 10px;
    display: block;
    overflow: hidden;
    margin-bottom: 5px
}
.mapapost .wrp-titulo a {
    
}
.mapapost .wrp-titulo a:hover {
    color: #f30;
    text-decoration: underline
}
.map-meta {
    display: block;
    float: left;
    overflow: hidden;
    padding-left: 25px;
}
.mapasite h2 .botao {
    float: right
}

Step-2 ( Adding HTML Script

Now this is the most essential part of the tutorial and you have to do it very carefully. In the template, search for the </body> tag  and just above it paste the following HTML Coding.

 <script type='text/javascript'> 
            //<![CDATA[
var text_month = [, "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sept", "Oct", "Nov", "Dec"];
var no_image_url = "http://1.bp.blogspot.com/-eAeO-DYJDws/Vkqtj4HFBFI/AAAAAAAAB0o/Q5OLsyONXM0/s1600-r/nth.png";

           var static_page_text = $.trim($('.static_page .post-body').text());
if (static_page_text === "[sitemap]") {
    var postbody = $('.static_page .post-body');
    $.ajax({
        url: "/feeds/posts/default?alt=json-in-script",
        type: 'get',
        dataType: "jsonp",
        success: function(dataZ) {
            var blogLabels = [];
            for (var t = 0; t < dataZ.feed.category.length; t++) {
                blogLabels.push(dataZ.feed.category[t].term)
            }
            var blogLabels = blogLabels.join('/');
            postbody.html('<div class="siteLabel"></div>');
            $('.static_page .post-body .siteLabel').text(blogLabels);
            var splabel = $(".siteLabel").text().split("/");
            var splabels = "";
            for (get = 0; get < splabel.length; ++get) {
                splabels += "<span>" + splabel[get] + "</span>"
            }
            $(".siteLabel").html(splabels);
            $('.siteLabel span').each(function() {
                var mapLabel = $(this);
                var mapLabel_text = $(this).text();
                $.ajax({
                    url: "/feeds/posts/default/-/" + mapLabel_text + "?alt=json-in-script",
                    type: 'get',
                    dataType: "jsonp",
                    success: function(data) {
                        var posturl = "";
                        var htmlcode = '<div class="mapa">';
                        for (var i = 0; i < data.feed.entry.length; i++) {
                            for (var j = 0; j < data.feed.entry[i].link.length; j++) {
                                if (data.feed.entry[i].link[j].rel == "alternate") {
                                    posturl = data.feed.entry[i].link[j].href;
                                    break
                                }
                            }
                            var posttitle = data.feed.entry[i].title.$t;
                            var author = data.feed.entry[i].author[0].name.$t;
                            var get_date = data.feed.entry[i].published.$t,
                                year = get_date.substring(0, 4),
                                month = get_date.substring(5, 7),
                                day = get_date.substring(8, 10),
                                date = text_month[parseInt(month, 10)] + ' ' + day + ', ' + year;
                            var tag = data.feed.entry[i].category[0].term;
                            var content = data.feed.entry[i].content.$t;
                            var $content = $('<div>').html(content);
                            var src2 = data.feed.entry[i].media$thumbnail.url;
                            htmlcode += '<div class="mapapost"><div class="map-thumb"><div class="map-img"><a href="' + posturl + '" style="background:url(' + src2 + ') no-repeat center center;background-size: cover"/></div></div><h3 class="wrp-titulo"><a href="' + posturl + '">' + posttitle + '</a></h3><div class="map-meta"><span class="p-author">' + author + '</span><span class="p-date">' + date + '</span></div></div>'
                        }
                        htmlcode += '</div>';
                        mapLabel.replaceWith('<div class="mapasite"><h2>' + mapLabel_text + '<span class="botao"><i class="fa fa-plus-circle"></i></span></h2>' + htmlcode + '</div>');
                        $(document).on('click', '.mapasite h2', function() {
                            $(this).parent('.mapasite').addClass('active');
                            $(this).find('.botao .fa').removeClass('fa-plus-circle').addClass('fa-minus-circle');
                        });
                        $(document).on('click', '.mapasite.active h2', function() {
                            $(this).parent('.mapasite').removeClass('active');
                            $(this).find('.botao .fa').addClass('fa-plus-circle').removeClass('fa-minus-circle');
                        });
                    }
                });
            });
        }
    });
}
            //]]>
</script>

Now Save your template and go to pages to add sitemap.

Note :- the widget works on jquery so you have to install jquery plugin if you haven't installed it yet..

Step-3 ( Adding Sitemap In Pages ) - Most Important !!

Now this is the most essential part of the tutorial and you have to do it very carefully.Go to your blogger dashboard > Pages > Add New Page.
On the new page content after adding the page title and hiding the comments using options, add the following code in the page content area.
[sitemap]


Now click publish button and check the published page to see the newly added sitemap widget. ;)

Conclusion

Congrats !! You have made it. now you have learned that How to Add Sitemap Widget In Blogspot Blogs. Visit your blog and check the awesome widget live in action, hope you liked this tutorial, if you enjoyed then please share it with your friends, we are working hard to develop more such awesome widgets please stay tuned with Us. Thank you
sharing is caring.....
if you get any question kindly make use of the comment box 

Tuesday, July 4, 2017

Idea for profitable blogging business

Having a small business and being your personal boss is one kind of those thoughts and dreams that undergoes nearly everyone's head it appears as if during ones life. Before you immediately started putting down money on an enterprise idea you'll want to develop an enterprise plan if you are not thinking about exploring bank for a loan.

Look at your resources
 
Resources here includes tangible and intangible assets that may function as standard of worth or exchange to allow you begin up a small business in earnest. It is wise the truth is money, skills, friends, contacts, talent, and creativity as resources. Take inventory of your stock of resources and this will subsequently tell your collection of business, approach and strategy for your organization operation.

These are the main reasons why, when you are planning to choose the web-host ideas, you're going to have the ability to save a lot of cash, money which can be used to pump more resources into the idea and make the business enter directions that will not have been possible if you've been able where you were more cash strapped than whatever else after the day.

If you are who owns a company unit, then, you will for sure understand the importance of receiving targeted returns on your investment. If you choose on-site search engine optimization approaches for your online website, which can be your computer home based business, you may be rest assured of getting the ideal returns for the minimal investment you create in designing the website and optimizing it for that search engines like yahoo. Also, look at the sum of money you will be saving on marketing costs. A well optimized website are able to do all these plus more for your personal machine work from home business. Don't think twice about opting for onsite optimization to get more profits.

Defining your requirements 
 
Make a list of the items you would like from your home business. This might include how much of their time the organization is going to take, how much cash profit it ought to produce, and just how much it'll cost you to get going. I recommend a low-cost, low-risk business idea for those in the beginning stages.
Share:

Friday, December 30, 2016

How To Hide Blog Archive Widget From Showing On Blogger Website

The Blogger "Blog Archive" widget makes it easy for visitors to navigate Blogspot blogs with links to older posts. It organizes your previously published posts by month week or day, which can be handy for readers who want to browse your older content.

When you create a new blog on Blogspot platform, the blog archive widget displays on all pages of the desktop and mobile views of the blog by default. If you don't want it to display, you can easily delete it.

How?

Sign in to your Blogger dashboard at blogger.com

Click on "Layout"

Scroll down to the section where you have the "Blog Archive" widget

Click on "Edit"
Click "Remove"

Click on "Save Arrangement"

That's all.

If you prefer to just hide it without deleting it, you can use css to get that done. All you need is the widget ID of the blog archive widget.

For example, if the id of my blog archive widget is BlogArchive1, I will add the css code below to my blog's html if I want to hide the widget from displaying on my blog without deleting it :

#BlogArchive1 {
display : none;
}

I hope this helps.


NB : It's highly recommended you have a blog archive widget or page on your blog.

Friday, October 14, 2016

Why Blogging Is Better Than A Paid Job


Everyone need a job in order to pay bills. There are so many kind of jobs that can fetch you money either online or offline. Blogging is one of the most popular online venture for now.

There are so many blogs currently in the blogosphere. And each day new blogs are created. Many of these blogs are created for personal use, while others are for money making purpose.


Today, blogging is paying the bills of so many bloggers. Some bloggers are buying houses, cars and others investing on other businesses from the money they earn from blogging.

Blogging is not an online get rich quick scheme. A lot of sacrifices are involved. Passion, dedication, commitment and investing financially is a must for one to reap the benefits of blogging.



Why Blogging Pays


Unlike other offline jobs, blogging can be better off as you don't need to be in a particular location everyday to work. You can be in the comfort of your living room, in an hotel or even in a friend's
house and be updating your blog. It is left for you to decide if you wish to wake up as early as 5am or sleep till 10am. This is because you are your own boss. You are living a life of freedom, a stress free
life. You have no fear of receiving a sack letter.


Proximity doesn't affect blogging. Take for example, war broke out in your country or  political or religious crisis in your state, you can simply relocate and continue blogging.  Changing location won't affect your earnings as long there is internet connection. It won't not affect your traffic too as long your visitors are from everywhere.

There is no fix amount of money you earn in a month. It all depends on how smart you work. Today in Nigeria, it hard to find a job where a graduate earns N200,000 per month on entry level. But there are bloggers without a university degree earning up to N500,000 per month and there are some earning more than that.

For those who love fame, blogging can make you popular. And the more famous you are as a blogger the higher the chances of making more money. You can get an endorsement from big brands. They will also pay you to promote their product or services.

You can take a break or go on vacation while your blog still send money to your bank account. There are so many blogs that have been left dormant for months and yet the owners still earn from it.

Apart from your data subscription and yearly domain renewal or hosting, you may not need to spend much as compare to other location based jobs where you pay daily for transportation or fuel your vehicle.

I am quite sure many will agree with me blogging is better but if only one get it right.

Some have quit their jobs and decided to take blogging as a profession. The risk taking is left for you.

No risk no reward.

Any addition or subtraction? Over to you....