How to Hide Content of Website and Blogger

Most blogger wants to hide some content from sites and blogger blogs because they try to make their blogs different one. When a blogger ads a content to header like all blog solution which has a header bar for recommended article, it must be flexible that is it must be removable. So that you need to add hiding jquery codes along with some html code. Lets follow the following steps to hide a block of content.

First Step: Log on your blogspot dashboard and go to template > edit html, now add id='remove' and <span id='hide' style='float:right; font-size:18px; font-weight:bold; padding right:15px;'>X</span>


eg: <div id='remove' style='background:red;  padding:7px 2px; color:blue; text-align:center;'>Les remove this content now<a href='http://allblogsolution.blogspot.com' style='font-weight:bold; color:white;' target='new'> Download This Template Now For Free </a>
                <span id='hidethis' style='float:right; font-size:18px; font-weight:bold; padding-right:15px;'>X</span>
</div>

Second Step: Now it's time to add jquery code and jquery api that conduct the id of the html code. Here is the codes
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js'/>
<script>
$(document).ready(function(){
    $("#hidethis").click(function(){
        $("#remove").hide();
    });
});
</script>
In the above code, you must consider one thing and that is you should not add ajax api if it is already available in your template or blog, otherwise it is mandatory.

I hope this codes will help you to make your blogger blog and site more attractive and user friendly. Your feed will be our encourage, so do not forget to give feedback. Thank you.

Comments