Advertisements

How To Add Change Font Size/Colour Widget to blogger

Posted by Lasantha Bandara on May 25th, 2009 File Under : background, gadget, widget9 Comments


Add this useful widget to your blog to give your readers more options to increase their reading comfort.

It allow us to change the text color of the post area as black, white, blue and gray.

It allow us to change the text size of the post area as 10, 12, 14, 16.

Follow below simple steps to add this widget.

1.Log in to your dashboard--> layout- -> Edit HTML

2.Scroll down to where you see </head> tag.

3.Now add below code before </head> tag.


<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>

5.Now save your template.

6.Go to Layout-->Page Elements.

7.Click on 'Add a Gadget' on the sidebar.

6.Select 'HTML/Javascript' and add below code and click save.


<!-- Code Begins -->
<!-- http://TheUnnecessaryWorld.co.cc -->
<style type="text/css">
/** TUW Font Color and Size Change widget begins **/
#tuw-font-change-widget {width: auto;}
#tuw-font-change-widget h2 {margin: 0 0 8px 0 !important;font: 12px Tahoma !important;font-weight: normal !important;border: 0 !important;}
#tuw-font-change-widget ul {width: auto; overflow: hidden;margin: 0 0 20px !important;padding: 0 !important;list-style; none !important;}
#tuw-font-change-widget ul li {width: 20px !important;height: 20px !important;overflow: hidden;margin: 0 10px 0 0 !important;padding: 2px !important;display: block !important;float: left !important;border: 1px solid #CCCCCC !important;}
#tuw-font-change-widget ul li a {width: 20px !important;height: 20px !important;display: block !important;line-height: 18px !important;text-align: center !important;color: #FFFFFF !important;font-size: 11px !important;font-family: Tahoma !important;text-decoration: none !important; outline: 0 !important;}
#fcw-black { background: #000000 !important; } #fcw-white { background: #FFFFFF !important; } #fcw-blue { background: #0066CC !important; } #fcw-gray { background: #666666 !important; }
#fcw-color a { text-indent: -999px !important; }
#fcw-size a { text-indent: 0 !important; background: #333333 !important; }
/** TUW Font Color and Size Change widget begins **/
</style>
<script type="text/javascript">
$(document).ready(function(){
// Change Font Color -- begins
$(" #fcw-color #fcw-black ").click(function() {
$(" .post-body ").css({ color: "#000000" });
return false;
});

$(" #fcw-color #fcw-white ").click(function() {
$(" .post-body ").css({ color: "#FFFFFF" });
return false;
});

$(" #fcw-color #fcw-blue ").click(function() {
$(" .post-body ").css({ color: "#0066CC" });
return false;
});

$(" #fcw-color #fcw-gray ").click(function() {
$(" .post-body ").css({ color: "#666666" });
return false;
});
// Change Font Color -- ends

// Change Font Size -- begins
$(" #fcw-size #fcw-10 ").click(function() {
$(" .post-body ").css({ fontSize: "10px" });
return false;
});

$(" #fcw-size #fcw-12 ").click(function() {
$(" .post-body ").css({ fontSize: "12px" });
return false;
});

$(" #fcw-size #fcw-14 ").click(function() {
$(" .post-body ").css({ fontSize: "14px" });
return false;
});

$(" #fcw-size #fcw-16 ").click(function() {
$(" .post-body ").css({ fontSize: "16px" });
return false;
});
// Change Font Size -- ends
});
</script>
<!-- TUW Blogger Change Font color and size widget begins -->
<div id="tuw-font-change-widget">
<div class="tuw-fcw">
<h2> Change Font Color </h2>
<ul id="fcw-color">
<li> <a id="fcw-black" href="#">black</a> </li>
<li> <a id="fcw-white" href="#">white</a> </li>
<li> <a id="fcw-blue" href="#">blue</a> </li>
<li> <a id="fcw-gray" href="#">gray</a> </li>
</ul>
</div>

<div class="tuw-fcw">
<h2> Change Font Size </h2>
<ul id="fcw-size">
<li> <a id="fcw-10" href="#">10</a> </li>
<li> <a id="fcw-12" href="#" title="Default Size">12</a> </li>
<li> <a id="fcw-14" href="#">14</a> </li>
<li> <a id="fcw-16" href="#">16</a> </li>
</ul>
</div>
</div>
<!-- TUW Blogger Change Font color and size widget ends -->
<!-- Code ends -->

File Under : background, gadget, widget

9 Responses to “How To Add Change Font Size/Colour Widget to blogger”

  1. •▬●๋•bíńdáکک●๋•▬• •▬●๋•dểlhíítể●๋•▬• says:

    Hi buddy,

    Thanks for promoting this widget. And I would also like to thank you for putting a link to the original publisher and creator of this widget that is 'The Unnecessary World'.

    Happy Blogging!

    enjoy :)

  2. Imran Malik says:

    ´´´´´´´´´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶¶¶
    ´´´´´´0¶¶¶0´´´´´´´´ø¶¢´´´´´´´´´´´´ø¶ø
    ´´´´´¶ø´´´¶¶´´´´o¶1´´´´¶¶¶´´1¶¶¶´´´7¶¢
    ´´´´´¶1´´´´¶´´´$ø´´´´´´¶¶$´´´¶¶´´´´´´¢¶
    ´´´´´o¶´´´o¶´´o¶´´´´´´´¶¶o´´´¶¶´´´´´´´øø
    ´´´´´´¶´´´¶´´´¶´´´´´´´´´´´´´´´´´´´´´´´´ø
    ´´´´¶¶¶¶¶¶¶¶¶¶¶¶´´´´´´´´´1¶1´´´´´´´´´´´ø¶
    ´´´¶´´´´´´´´´´´´¶´¶¶´´´´´¶¶¶´´´´´´¶¶´´´´ø
    ´´ø¶´´´´´´´´´´´o¶´´¶¶´´´´´´´´´´´´¶¶´´´´´ø
    ´¶¶´´´¶¶¶¶¶¶¶¶¶¶¶´´´7¶¶ø7oo77¢¶¶¶´´´´´´ø¶
    ´¶´´´´´´´´´´´´´´´¶´´´´´¶¶¶¶¶¶¶´´´´´´´´oø
    ´¶¢´´´´´´´´´´´´´´¶´´´´´´´´´´´´´´´´´´´¶
    ´´¶´´´¶¶¶¶¶¶¶¶¶¶¢¶7´´´´´´´´´´´´´´´´7¶ø
    ´´´¶´´´´´´´´´´´¶´´ø¶¶´´´´´´´´´´´øø¶
    ´´´´¶¶¶¶¶¶¶¶¶¶¶ø´´´´´´¶¶¶¶¶¶¶¶¶¶´

    collection of mY best BLOG

    http://mystery4life.blogspot.com/
    http://4urdesktop.blogspot.com/
    http://4urfone.blogspot.com/
    http://fmurdu.blogspot.com/
    http://selectislam.blogspot.com/
    http://guromusic.blogspot.com/
    http://4ursport.blogspot.com/
    http://4urart.blogspot.com/
    http://planets4u.blogspot.com/
    http://4urglobal.blogspot.com/
    http://permit4u.blogspot.com/
    http://visa4study.blogspot.com/
    http://w3cworld.blogspot.com/
    http://cool4sms.blogspot.com/
    http://4urmortgage.blogspot.com/
    http://secretbanking.blogspot.com/
    http://4urfashion.blogspot.com/
    http://csufi.blogspot.com/
    http://4urpets.blogspot.com/
    http://dreamyhealth.blogspot.com/
    http://4urtech.blogspot.com/
    http://nationmaker.blogspot.com/
    http://nobelgenius.blogspot.com/
    http://crimesking.blogspot.com/
    http://awanbank.blogspot.com/
    http://pakway.blogspot.com/
    http://ipakway.blogspot.com/
    http://cwildlife.blogspot.com/
    http://4urjazz.blogspot.com/
    http://soulpic.blogspot.com/
    http://picwar.blogspot.com/
    http://desivoyeur1.blogspot.com/
    http://malik4u.blogspot.com/
    http://awan4u.blogspot.com/
    http://idesix.blogspot.com
    http://dollarbanao.blogspot.com/
    http://4urcash.blogspot.com/

    http://cfirst.blogspot.com/

    http://paksoldier.blogspot.com/

  3. yhany says:

    these widget is very NICE!Thanks for sharing..
    http://tipsterian.blogspot.com/

  4. my_passion48@yahoo.com says:

    I LIKE UR BLOG!!!
    THANKS FOR THAT.
    http://templates-widgets-softwares.blogspot.com

  5. Omais says:

    is there anybody who try this widget?

  6. -=Evilbou Hacker=- says:

    Why This Widget Doesnt Work in my Template?

    check this http://evilmodz.blogspot.com/

  7. Notis says:

    in my blog i made changes and i put it in the text in every post... it easy and better for the reader.

  8. Rabindra Lamsal says:

    Thanks for this awesome widget. I am going to use it in my blog.

Leave a Reply