After a lot of testing and hard work, i was able to bring you one of the best widget to spice up your comment box, as you all know that making your blog/site attractive is a very complicated task, which some designers/developers find it so difficult in customizing or adding effect to the comment box. Now this tutorial will show you How To Add Expand/Collapse Blogger comment Box To Blogger.
LIVE DEMO
Expand/Collapse Blogger comment Box Demo
How To Add Expand/Collapse Blogger comment Box To Blogger
- Go to Blogger Dashboard
- Click on DropDown Menu and select Template
- Backup your Template before making any changes to your blog
- Now Click on Edit HTML --> Proceed --> Expand Widget Templates
- Press Ctrl + F and search the code shown below
</head>
- Now replace it with the code shown below
<style type="text/css">
h2.trigger2 {
padding-left:50px;
margin:10px 0px 10px 10px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpnU1u_TRIZcykG9uNfKG3InWoTYpXuiyezkILrdcWPUG6oPyIpcNt4CSJoOdePIJkpM-J3CV7N9BXH3uhxK0rIxe74zmPv-QPYwF6oX02zlpVPYUXzh-y_9ACk0blJ1YpwKoip2S24IY/s1600/h2trigger.png) no-repeat;
height: 46px;
line-height: 46px;
width: 580px;
font-family:"Francois One";
font-size: 1.4em;
font-weight: bold;
text-align:left;
color:#fff;
float: left;
cursor:pointer;
}
h2.active {
background-position: bottom left;
}
.toggle_container2 {
padding-left:10px;
overflow: hidden;
clear: both;
}
</style>
<script type='text/javascript'>
$(document).ready(function(){
$(".toggle_container2").hide();
$("h2.trigger2").click(function(){
$(this).toggleClass("active").next().slideToggle("slow");
});
});
</script></head>
h2.trigger2 {
padding-left:50px;
margin:10px 0px 10px 10px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpnU1u_TRIZcykG9uNfKG3InWoTYpXuiyezkILrdcWPUG6oPyIpcNt4CSJoOdePIJkpM-J3CV7N9BXH3uhxK0rIxe74zmPv-QPYwF6oX02zlpVPYUXzh-y_9ACk0blJ1YpwKoip2S24IY/s1600/h2trigger.png) no-repeat;
height: 46px;
line-height: 46px;
width: 580px;
font-family:"Francois One";
font-size: 1.4em;
font-weight: bold;
text-align:left;
color:#fff;
float: left;
cursor:pointer;
}
h2.active {
background-position: bottom left;
}
.toggle_container2 {
padding-left:10px;
overflow: hidden;
clear: both;
}
</style>
<script type='text/javascript'>
$(document).ready(function(){
$(".toggle_container2").hide();
$("h2.trigger2").click(function(){
$(this).toggleClass("active").next().slideToggle("slow");
});
});
</script></head>
- To change the width of the button edit width: 580px
- Now Find the code shown below using [ctrl+F]
<b:includable id='comment-form' var='post'>
- Now Paste the Code Shown Below just below/after it
<h2 class='trigger2'>Click to Add a New Comment</h2>
<div class='toggle_container2'>
<div class='block'>
<div class='toggle_container2'>
<div class='block'>
- And above </b:includable> paste this code:
<p style=' line-height:0px; font-family:Arial; font-size:8px; font-weight:bold; text-align:right;'><a href='http://www.mybloggertools.org/2012/07/add-expandcollapse-blogger-comment-box.html' style='color:#CAC8C8;'><i>Get This</i></a></p></div></div>
- See the image shown below to see you have followed the steps correctly.
25 comments
Brother I Tried It Very Much But unsuccessfull..And I Want The Same Comment Backgroung Which you have..So Bhai Please Meri Help Karo Yaar..
I Sent It To You Please Add The Gadget's
@Sunil Fixed and sent back to you
Great Work Buddy Thank You.. But How Can I Increase The Width Of My Template.
Brother After Doing 1 Comment on My Post.. It Revert Back To Old Comment Look..Comment On My Blog And See What Happen..Help Me..
my Blog Is Getripstuff.blogspot.com
Dear Sonu i can not found the code in my blog..... help me...
Brother It Is Not Closing..click to add a comment...it remains open always...
check here tricksandteachlab.blogspot.com
@ADMIN Install this code again in your template
<h2 class='trigger2'>Click to Add a New Comment</h2>
<div class='toggle_container2'>
<div class='block'> and
<p style="display:none;">Blogger comment Box by <a href="http://www.latesthack.com">Latest Hack</a></p></div></div>
not working tried many times...? help
@ADMIN Send me your template
I SENT THE TEMPLATE TO YOU
@ADMIN Fixed and sent back to you
thx for helping me brother..
i ve sent my blog code to ur mail ....check d attachement and add d widget and send back plz...
http://besthacking99.blogspot.in/
i ve sent my blog code ....check d attachement and add d widget and send back....
thank you very much brother its working like a charm!!!!!!
@ranga nathan Fixed and sent back to you
Like
I'll try it and if i fail may be i'll need your help sonu ;)
i'll reply as soon as i got a result ;)
@Admin can you give me a demo
@sonu
Hi Sonu
Brother I Tried It many times But i fail .. Please I Want The Same Comment Background Which you have here "widget" i sent u an E-mail with html file ,, u can find my mail with name sender: Tamer Magd
@sonu
I sent it to your E-mail with full template ... i am waiting your Reply dude ;)
@AdminI have not received any mail from you
@sonu
I sent it again to you ,, Please check it again ...
my name in E-mail is : Tamer Magd
Tried this one too. But not working on my website www.fantastech.org . I will send you my template file to your email. Please add this gadget and http://www.mybloggertools.org/2012/08/add-css3-spinning-social-sharing.html and http://www.mybloggertools.org/2012/08/add-css3-spinning-social-sharing.html
Click to Add a New Comment