I came across an excellent jQuery based text resizer script for blogger blogs that lets your visitors to change or resize font size of the text in your blog posts. This decreases or increases the text size providing your visitors with better readability. Its useful especially to those with weak eye sights and for those with display issues. Fluid Text Resizer widget has been designed by mybloggertricks and script is adopted from dynamic drive. It will appear just below your post titles and will allow your visitors to toggle the text size to their comfort. Text size on your entire blog will be zoomed in and zoomed out. From sidebars till footer, all text will be maximized. It also includes a Reset link that toggles the default font level. Lets get to work then!
It can adjust the text size of a particular section of your blogger blog, such as just the primary content area or comment section, or the entire document in general.
Add Text Resizer Widget To Blogger
- Go To Blogger > Design > Edit HTML
- Backup your template
- Check the "Expand Widget Templates" box
- Search for this,
5. Just below it paste the following code,
]]></b:skin>
<style type='text/css'>
/*----- Text Resizer By MBT ------*/
.controlstyle a{ /*links inside DIV sizecontroldiv*/
outline:none;
}
.controlstyle a img{ /*image links inside DIV sizecontroldiv*/
border-width:0;
}
.controlstyle a.selectedcontrol img{ /*selected control's image*/
border-bottom:4px solid darkred;
}
.mbt-text-resizer{
font-weight:bold!important; color:#F07727!important; text-decoration:none!important; font-family:arial,tahoma !important; font-size:16px!important;
}
#mbt-text-resizer-container {
margin:4px 0px;
padding:4px;
border-top:1px solid #ddd;
border-bottom:1px solid #ddd; width:100%;
}
</style>
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js' type='text/javascript'/>
<script src='http://www.dynamicdrive.com/dynamicindex9/fluidtextresizer.js' type='text/javascript'>
</script>
<script type='text/javascript'>
var mytextsizer=new fluidtextresizer({
controlsdiv: "sizecontroldiv", //id of special div containing your resize controls. Enter "" if not defined
targets: ["body"], //target elements to resize text within: ["selector1", "selector2", etc]
levels: 10, //number of levels users can magnify (or shrink) text
persist: "session", //enter "session" or "none"
animate: 200 //animation duration of text resize. Enter 0 to disable
})
</script>
6. Next search for this code,
<data:post.body/>7. Just above it paste the following code,
You can change the text being displayed if you wish.
<b:if cond='data:blog.pageType == "item"'>
<div id='mbt-text-resizer-container'>
<div class='controlstyle' id='sizecontroldiv'>
<font style='color:#666; font-weight:bold;'>Adjust the font size:</font> <a class='mbt-text-resizer' href='#smaller'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7te9QrQFrBcIY1WYJnypoNHBIiSo3UVNn5N7iEwz3Kxy7Kw8PUFF22AN6Txc3TJOPi6jp6ueEak0egOVWlJou_S7KIYJgl0LKkNiD_dQx6ZrLrUO_i1xHH1C7QOuviPfcYa0eMg7CO8I/s400/oranged.png'/> </a> <a class='mbt-text-resizer' href='#bigger'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpEWzCkjaEaD8N6lb7zCQe7NE8QsGc_riISZHA8LBqFi1X0V6frK50W7DMlyJvgE9FDkLpztsEmyWO095IDlZeorIkfJDaQUrPLKn-iEBcoE2mUUGLUzEXQ48Yicg2qWJ-NbATp-vicb4/s400/orangei.png'/>  </a><a class='mbt-text-resizer' href='javascript:mytextsizer.setFontLevel(0)' rel='nofollow'>Reset ↕</a>
</div>
</div>
</b:if>
8. Save your template and you are all done!
Visit any of your post to see it appearing just below the post title. I have turned off the widget display on homepage. If you want the widget to be displayed on homepage too then simply delete the purple lines from the code in step#7.
Need help?
Do let me know if you wish to change anything. I will publish more color variations and styles of this gadget today so stay tune. Feel free to ask anything which is still un clear for you. Peace buddies! :>If you don't want to get yourself into Serious Technical Trouble while editing your Blog Template then just sit back and relax and let us do the Job for you at a fairly reasonable cost. Submit your order details by Clicking Here »
its not working. :P
ReplyDeleteyep , its not working .....
ReplyDeleteBecause both of you forgot to upload the javascript: :)
ReplyDeletehttp://www.dynamicdrive.com/dynamicindex9/fluidtextresizer.js
i was talking about your DEMO link Bro ...
ReplyDeleteNow Working :)
ReplyDelete@Malik
ReplyDeleteMake sure you are not directly pasting the Javascript coe inside your template. Don't do that. simply replace src='fluidtextresizer.js' with the link of your uploaded javascript.
@haider
Shuker it does now. :)
I do not know where I should put the javascript on my blog, I ask for help.
ReplyDeleteIts work ! Thank you MBT <3
ReplyDeletewell, I did right till the step 5, but could not find the step 6 text in the edit HTML section of the template... where do I look for it?
ReplyDeleteDid not find
ReplyDeleteDid not find data:post.body
ReplyDeleteoh no I can't do that!
ReplyDeleteHello,
ReplyDeleteI searched a long time and a bit tired too.And yours is very helpful to me.Thank you very much for the post .
Hi ,
ReplyDeleteI did this exactly and i got it .But now i dont find the widget. And also i cant able to find this . I am a new blogger.can you please help me?
Thankyou