Skip to main content

Toggle Text box widget for Blogger

Toggle Text box widget for Blogger
For mentioning an article’s some important phrase, author credit or just highlight some special text in post we often use Toggle text box widget (Click on a line or button, expands and expose to lot’s of embedded text). Toggle text box widget usually comes up with Wordpress theme package (like Thesis theme, Elegant Themes) what can be activate through ‘text editor’. But for ‘Blogger’ there is no such function like Toggle box. So I wanted to make one for Blogger. This Toggle box widget basically work like Accordion and they powered by jquery for creating smooth effect. This one I developed it do not use jquery felt not necessary and slow down site, made with just CSS, HTML5 and CSS3, cool designed, light weighted and responsive. Let’s see how it looks like and how to add it in Blogger.  

Toggle text box widget for Blogger

Demo:- (Click here)

Codes for copy-

CSS

/*crawlist.net css starts*/
.ks-toggle-box{
    width: 600px;
    text-align: left;
}
.ks-toggle-box label{
    padding: 5px 20px;
    position: relative;
    z-index: 20;
    display: block;
    height: 30px;
    cursor: pointer;
    color: #777;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.8);
    line-height: 33px;
    font-size: 19px;
    font-family: 'Droid Serif', serif;
    background: #ffffff;
    background: -moz-linear-gradient(top, #ffffff 1%, #eaeaea 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(1%,#ffffff), color-stop(100%,#eaeaea));
    background: -webkit-linear-gradient(top, #ffffff 1%,#eaeaea 100%);
    background: -o-linear-gradient(top, #ffffff 1%,#eaeaea 100%);
    background: -ms-linear-gradient(top, #ffffff 1%,#eaeaea 100%);
    background: linear-gradient(top, #ffffff 1%,#eaeaea 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eaeaea',GradientType=0 );
    box-shadow:
        0px 0px 0px 1px rgba(155,155,155,0.3),
        1px 0px 0px 0px rgba(255,255,255,0.9) inset,
        0px 2px 2px rgba(0,0,0,0.1);
}
.ks-toggle-box label:hover{
    background: #fff;
}
.ks-toggle-box input:checked + label,
.ks-toggle-box input:checked + label:hover{
    background:#666;
    color:#fff;
    text-shadow: 0px 1px 1px rgba(255,255,255, 0.6);
    box-shadow:
        0px 0px 0px 1px rgba(155,155,155,0.3),
        0px 2px 2px rgba(0,0,0,0.1);
}
.ks-toggle-box label:hover:after,
.ks-toggle-box input:checked + label:hover:after{
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    right: 13px;
    top: 7px;   
}

.ks-toggle-box input{
    display: none;
}
.ks-toggle-box article{
    background: rgba(255, 255, 255, 0.5);
    margin-top: -1px;
    overflow: hidden;
    height: 0px;
    position: relative;
    z-index: 10;
    -webkit-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
    -moz-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
    -o-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
    -ms-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
    transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
}
.ks-toggle-box article p{
    font-family: 'Droid Serif', serif;
    color: #777;
    font-size: 16px;
    padding:20px;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.8);
   
}
.ks-toggle-box input:checked ~ article{
    -webkit-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
    -moz-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
    -o-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
    -ms-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
    transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
    box-shadow: 0px 0px 0px 1px rgba(155,155,155,0.3);
}
.ks-toggle-box input:checked ~ article.ac-small{
    height:300px;
    }
/*crawlist.net css ends*/


HTML

<!-- crawlist.net toggle starts -->
<section class="ks-toggle-box" style="width:80%; margin:auto">
  <div>
    <input id="ac-1" name="accordion-1" type="checkbox" />
    <label for="ac-1"> Heading </label>
    <article class="ac-small">
      <p>
Paragraph
</p>
    </article>
  </div>
</section>
<!-- crawlist.net toggle ends-->


How to add it in Blogger

This widget set up has four steps, read on-

1. Back up your template
  • Log in to your blogger, select your blog, 
  • Select 'Template' tab option, click 'backup/restore' from upper right corner. 
  • Download full template and save it on your pc's Hard drive

2. Goodies installing
  • Go to ‘Template’ tab, select ‘Edit HTML’, 
  • Search (Using CTRL+F or CMD+F) into code snippet </head>
  • Above </head> copy and paste this line of code

<link href='http://fonts.googleapis.com/css?family=Droid+Serif' rel='stylesheet' type='text/css'/>


3. Installing CSS
  • Go to ‘Template’ tab, select ‘Edit HTML’, 
  • Search (Using CTRL+F or CMD+F) into code snippet ]]>< 
  • Above ]]>< copy and paste CSS part

4. Setting up HTML
  • During editing post ‘post editor’s upper side (compose/HTML) 
  • Select HTML/switch to HTML, and copy paste HTML part, and configure, 
  • Red text replace with your Heading, Pink text replace with your hidden paragraph. 
  • After configuring switch to ‘compose’ part.
  • Done, check out your post now ;)

Compatibility
This toggle text box widget is compatible with all major web browser and compatible with all standard designed Templates.

So add this Toggle text box widget to your Blogger blog easily, make your blog post trendier and style-full, any problem or feedback please leave with comment. New unique widget will be release soon stay subscribed. Chill….

Comments

Popular posts from this blog

Add Cool Social Media Sharing icons below posts in Blogger

Change the taste of random looking social sharing button below posts in Blogger, here you can find a different and cool social media sharing widget what I named it Coldblodded! This social sharing widget loads faster than other icon base social shares, it's icons change color with mouse hover with flipping effect, it got the major social media sites share, main color is black colored what looks artistic and attractive.
Coldblodded social media sharing widget offers shares a post to Facebook, Twitter, Google plus, Pinterest and bookmark a post on Delicious, Evernote, Stumble upon, Digg, Blogger, Yahoo bookmarks additional feedburner email subscription. It made with CSS, HTML and icons uses only a piece of image what will draw all icon process calls CSS image transition CSS Sprite, This widget also reduce HTTP request unlike other icon base sharing choices. Will be fit to any kind of Blogger blog, no matter they are professional blogs, gallery or other features sites. Let's see…

Easily Get 50000 free Backlink for your website

Backlinks are heart of SEO. Without backlink your website will not get a good position in search result and won't get indexed quickly. As you already knew there is two ways you can get backlinks one is Natural linking and another is paid or automated linking. Natural linking is worth to doing and it takes a while but if you don’t have enough time, running a professional business website and need to reach a destination quickly, automated backlinking going to be your last choice. To make automated backlinks you will need to buy paid link package or if you just don’t willing to buy links right now let’s start with free. Here such kind of free backlink maker, free backlink generator listed. And definitively you have a chance to create 50000+ free backlink for your website. But you should also remember Google doesn't like it, I mean Google doesn't recommend it at all. Read on-

+ 50000 free backlink for your websiteIndex kings
Rapid website submitter index kings it will submit y…

12 best free Article Rewriter/Spinner you can use

Copy paste's day is over, search engine's unique content search system finds plagiarism automatically and charge copy paster's for not to having unique content on site and also deploy duplicate content issue what is a big SEO factor now days. Plus if you use stolen text to use those on your site you also will get Dmca,Copyscape, Creative Commons and other content protecting law and policy warning and charge.
Also for holding site's readers eyes and mind on your site content spinning article can be use for present a article more charming with rich vocabulary and thesaurus. And batch producing a lot of article in short time from already someone's published article, article rewriter can be a helpful easy way for you or your client.
There is lot of free article rewriter/spinner online web tool and offline desktop application you can find for spinning your articles for free. After testing most of these tools, I made a final list. Now from the best article rewriter lis…

Add 6 stylish list/bullet to Blogger posts

Blogger’s default list/bulleting system is using dots, dotting style is cool but not that much cool if you are little bit of stylish and want to stay trendy and also want to represent your lists with high-end taste. That’s reason here I am publishing 6 different style of bullet system calls Arrow, Minus, Check, Plus, Carrow and Star. Made with CSS, Google font, Sprite images and they are super easy to add; designed that way. Let’s see how they look like and how to add them to your Blogger blog.

Arrow style
.post-body ul {margin:0; padding:6px 0; list-style:none;}
.post-body ul li {margin:10px; padding:0 0 5px 22px; color:#222222; background-repeat:no-repeat; background-position:-67px -558px; background-image:url(http://4.bp.blogspot.com/-DNKkr3dU60Y/U_Y0fu18r_I/AAAAAAAAE4g/D_thihTIu-E/s1600/oh.png); background-position:-303px -322px; font-size:15px; line-height:1;font-family: 'Droid Serif', serif; font-weight:100;}/*crawlist.net bullet*/
@import url(https://fonts.googleapis.co…

How to use Google Font in Blogger post

Your Blogger template’s default fonts are basically Ariel, Georgia, Times, Trebuchet, Helvetica. These fonts are simple and not so attractive. If your blog running with these default fonts may be you will lost some audience, those audience who care about your blog design overall too. But these default fonts can be change easily. There are lots of font provider offers web fonts what can be easily integrate to your site. Google web font is one of best web font provider. In Google font’s collection more than 650+ font with various styles you can find. Using Google font in your post, you can customize your font style more specifically, like font thickness, slant, width, line height, font weight, font script etc. Let’s add Google font in your Blogger, this process is easy and difficulty is beginner. Read on-

How to use/install Google Font in Blogger post
Step 1: Choosing Fonts
Go to Google web font (Here), See demo of font family by Word, Sentence, Paragraph. Use Filter (Left side) for find …