WP-chgFontSize WordPress plugin
Although users can change the font size of a web page through standard browser settings, few people knows or remembers how to do it.
WP-chgFontSize is a WordPress plugin that allows users to change dynamically the font size by adding a text or image selection on your blog. It also stores the user selection on their user’s browser cookies.
It can be used as a widget or directly as a PHP call in the theme.
See an example of how it works at the upper right side (header) of this blog.
Installation
- Download WP-chgFontSize.
- Decompress and upload the contents of the archive into /wp-content/plugins/.
- Activate the plugin on your WP Admin » Plugins page by clicking ‘Activate’ at the end of the ‘WP-chgFontSize’ row.
- Configure the plugin on your WP Admin » Options » Font Size page.
Usage
To use it, there are two possibilities:
- If your theme supports widgets, and you have installed the widget plugin or you are using WordPress 2.2 or higher, add the ‘WP-chgFontSize’ widget on your WP Admin > Presentation > Widgets page.
- Add this code to the theme’s file where you want the font size selection appear, for example, on the sidebar.php file:
<?php chgfontsize_display_options(); ?>
License
This plugin is released under the GPL.
This plugin is provided with absolutely no support or warranty.
Version History
- March 8 2007 – v1.0
- Initial release to the public.
- August 1 2007 – v1.1
- Bug: use get_bloginfo(’wpurl’) instead of get_bloginfo(’url’).
- New feature: option to restore default font size.
- New feature: be able to specify min, max and interval values for the font size.
- New feature: be able to use pixels, ems and percentages units for the font size.
- September 6 2007 – v1.2
- Bug: first click on + size, it jump to GIANT font size.
- October 21 2007 – v1.3
- New feature: widgetized version.
- October 26 2007 – v1.4
- Bug: change js function names to avoid name duplications.
- February 5 2008 – v1.5
- Bug: allow class type div elements.
- April 23 2008 – v1.6
- Bug: fix IE issues with class type elements.
- June 10 2009 – v1.7
- Bug: Determine the correct wp-content directory.
- May 4 2010 – v1.8
- New feature: add ‘Steps’ mode (Thanks to Leo Brown!).
To Do
Updated 11 Sep 2008
Bug: use get_bloginfo(’wpurl’) instead of get_bloginfo(’url’)New feature: option to restore default displayNew feature: be able to use ems or percentages instead of pixels for the font-sizesNew feature: widgetized versionBug: fix IE issues with class type elements- New feature: add non-constant intervals
- New feature: add a <noscript> section for non-ActionScript-enabled browsers
Additional comments powered by BackType














255 Comments to “WP-chgFontSize WordPress plugin”
Trackbacks/Pingbacks:
March 18th, 2007 at 2:57 pm
[...] ダウンロード:WP-chgFontSize WordPress plugin [...]
March 19th, 2007 at 10:16 am
[...] WP-chgFontSize is a WordPress plugin that allows users to change dynamically the font size by adding a text or image selection on your blog. [...]
March 19th, 2007 at 12:44 pm
[...] just added another plugin: WP-chgFontSize. Found it in one of my daily chacks at the WP Plugins page. Intallation was easy, especially after [...]
March 19th, 2007 at 1:07 pm
[...] WP-chgFontSize erlaubt dem Benutzer, die Schriftgröße durch Text- oder Bildselektion dynamisch zu ändern. [...]
March 19th, 2007 at 2:10 pm
[...] chgFontSize,让访问者可以改变页面上字体的大小,对于中文用户有很大的实际意义,因为很多模版在FF/Opera这些浏览器下字体设定会显得过小。 上传激活。Options => Font Size page中作相关设定,在模版的合适位置(一般是sidebar部分)增加代码"<?php chgfontsize_display_options(); ?>"。 Tags: font, fontsize [...]
March 19th, 2007 at 2:35 pm
[...] More info & Download [...]
March 19th, 2007 at 3:50 pm
[...] chgFontSize,让访问者可以改变页面上字体的大小,对于中文用户有很大的实际意义,因为很多模版在Firefox/Opera这些浏览器下字体设定会显得过小。 [...]
March 19th, 2007 at 4:23 pm
[...] WP-chgFontSize WordPress plugin » SDLC Blog [...]
March 19th, 2007 at 6:37 pm
[...] WP-chgFontSize es un plugin de WordPress que permite al usuario el cambio dinámico del tamaño de la letra , añadiendo una imagen o un texto de selección en tublog. [...]
March 20th, 2007 at 9:08 am
[...] to alter things to their taste. All hail then Ferran Rodenas, who has produced one of the most useful plug-ins in the WordPress canon, providing a shortcut to text resizing for those bloggers with neither time nor energy to [...]
March 20th, 2007 at 9:38 pm
[...] I added the WP-chgFontSize plugin, which is pretty cool. I wish it used ems or percentages instead of pixels for the [...]
March 20th, 2007 at 11:18 pm
[...] WP-chgFontSize WordPress plugin WP-chgFontSize is a WordPress plugin that allows users to change dynamically the font size by adding a text or image selection on your blog. It also stores the user selection on a user’s browser cookie. (tags: wordpress plugin wp-plugins fonts typographie webdesign) Verwandte Einträge No Related Posts [...]
March 21st, 2007 at 1:32 am
[...] WP-chgFontSize WordPress plugin » SDLC Blog – [...]
March 21st, 2007 at 2:49 am
[...] WP-chgFontSize WordPress plugin » SDLC Blog (tags: wordpress plugin font plugins tool) [...]
March 28th, 2007 at 12:04 pm
[...] a list of plugins that will do just that: Wp-chgFontSize by rodenas. Demo [...]
March 31st, 2007 at 2:03 pm
[...] WP-chgFontSize WordPress plugin » SDLC Blog Plugin de WordPress para aumentar o disminuir el tamaño de la tipografia. (tags: wordpress plugin plugins font tool fonts typography) [...]
April 11th, 2007 at 5:27 am
[...] on the left, you will see that you can now change the font-size of the content of this blog. WP-chgfontsize is another great plugin which allows users to dynamically change the font size, very handy if you [...]
May 10th, 2007 at 11:21 am
[...] WP-chgFontSize WordPress plugin Although users can change the font size of a web page through standard browser settings, few people knows or remembers how to do it. WP-chgFontSize is a WordPress plugin that allows users to change dynamically the font size by adding a text or image selec (tags: wp plugins cms) [...]
May 20th, 2007 at 9:58 am
[...] Visit [...]
June 26th, 2007 at 4:05 pm
[...] Give them the possibility to change the font size: wp-chfontsize WordPress plugin. Many people don’t know or forget that they can do this from their browser. Why not making it [...]
July 12th, 2007 at 8:49 am
[...] WP-chgFontSize [...]
August 3rd, 2007 at 1:18 am
[...] Ferdy August 3rd, 2007 – 1:17 am WordPress Average time to read 0:17 minutes I have updated the WP-chgFontSize WordPress plugin to add some user [...]
August 24th, 2007 at 1:53 pm
[...] Yazılarınızın boyutlarını küçültmeye veya büyültmeye imkan verir. Test&Link [...]
August 25th, 2007 at 8:59 pm
[...] Yazılarınızın boyutlarını küçültmeye veya büyültmeye imkan verir. Test&Link [...]
August 27th, 2007 at 1:16 pm
[...] Yazılarınızın boyutlarını küçültmeye veya büyültmeye imkan verir. Test&Link [...]
September 6th, 2007 at 3:03 am
[...] Ferdy September 6th, 2007 – 3:03 am WordPress Average time to read 0:08 minutes I have updated the WP-chgFontSize WordPress plugin to fix a nasty [...]
September 29th, 2007 at 2:54 am
[...] the option to change the font size. I was very happy that the WordPress plugin author updated this nifty tool to work in the newest WordPress version for visitors who prefer to use larger [...]
October 21st, 2007 at 3:33 am
[...] WP-chgFontSize v1.3: [...]
November 24th, 2007 at 10:52 am
Meine verwendeten WP-Plugins…
Die letzten Arbeiten an meinem WP-Theme sind jetzt beendet. Deshalb möchte ich an dieser Stelle eine Liste von sehr guten und hilfreichen WP-Plugins vorstellen, die ich auf diesem Blog einsetze. Vielen Dank an alle Autoren für die gute Arbe…
December 8th, 2007 at 3:03 pm
[...] Besucher können Schriftgröße der Beiträge ändern WP-chgFontSize [...]
December 11th, 2007 at 1:55 am
[...] yang mau nambahin fungsi mengubah ukuran font kayak di header theme ini, bisa menggunakan plugin WP-chgFontSize atau plugin Change Font [...]
December 14th, 2007 at 3:12 am
[...] WP-chgFontSize Share and Enjoy: Share This Article [...]
December 18th, 2007 at 10:12 pm
[...] WP-chgFontSize [...]
December 31st, 2007 at 3:54 am
[...] I’ve searched for, found, and ta da!, added the “change font size” widget by Ferran Rodenas. [...]
January 17th, 2008 at 6:04 pm
[...] WP-chgFontSize -this allows users to change the font size dynamically , storing user selection in a cookie. “It can be used as a widget or directly as a PHP call in the theme.” [...]
January 22nd, 2008 at 1:07 pm
[...] Plugin Homepage [...]
January 26th, 2008 at 11:56 pm
[...] 204 WP-chgFontSize Yazılarınızın boyutlarını küçültmeye veya büyültmeye imkan verir. Test&Link [...]
February 20th, 2008 at 1:54 pm
[...] Yazılarınızın boyutlarını küçültmeye veya büyültmeye imkan verir. Test&Link [...]
March 20th, 2008 at 8:41 pm
[...] Yazılarınızın boyutlarını küçültmeye veya büyültmeye imkan verir. Test&Link [...]
May 30th, 2008 at 11:15 am
[...] [sito dell'autore] [...]
June 29th, 2008 at 4:40 pm
[...] WP-chgFontSize – Allows users to dynamically change the font size. [...]
August 15th, 2008 at 9:39 am
[...] 204 WP-chgFontSize Yazılarınızın boyutlarını küçültmeye veya büyültmeye imkan verir. Test&Link [...]
September 18th, 2008 at 7:14 pm
[...] Yazılarınızın boyutlarını küçültmeye veya büyültmeye imkan verir. Test&Link [...]
September 22nd, 2008 at 1:57 am
[...] Change Font Size : I like small type. Like, a lot. This bugs the heck out of the people that I design for usually because I err a good 2-4 pts below what other people are comfortable with… and believe it or not, that’s after I went through my pixel font stage. While I’ve tried to keep the size issues on here pretty run of the mill, this little plugin allows people to change the font size on the fly in case they don’t know how to use CTRL +/-. It might seem frivolous, but it’s about accessibility on the web. Ozh’ Admin Drop Menu : This one is a very very close runner up to being my favorite. It customizes and streamlines the admin panels UI so that it-just-works-better. Get this one. [...]
September 23rd, 2008 at 8:23 pm
[...] other is WP Change Font Size. This allows users to change the font in the posting area (or the whole blog if you want.) It is [...]
October 6th, 2008 at 7:57 pm
[...] 260 © WP-chgFontSize Yazılarınızın boyutlarını küçültmeye veya büyültmeye imkan verir. Test&Link [...]
December 8th, 2008 at 5:35 pm
[...] Font Size Plugin Hi all, Anyone know how to get this working using OT? WP-chgFontSize WordPress plugin SDLC Blog Its quite an old plugin but gets updated and is very good feature i wish to use. If anyone can let [...]
December 31st, 2008 at 8:20 am
[...] WP-chgFontSize [...]
October 7th, 2009 at 3:08 pm
[...] ほいでま見つけたのが WP-chgFontSize [...]
March 25th, 2010 at 1:34 pm
[...] WP-chgFontSize [...]
July 10th, 2010 at 12:33 am
[...] WP-chgFontSize – allows users to change dynamically the font size by adding a text or image select… [...]
Comments:
March 20th, 2007 at 7:26 pm
Thank you.
March 22nd, 2007 at 11:39 am
I tested this plugin on one of my sites which has wp installed in a subdirectory, and it didn’t work at first. But then I changed line 142 ( function add_chgfontsize_js() ) to be get_bloginfo(‘wpurl’) instead of get_bloginfo(‘url’) and then it worked like it should.
- so you might consider changing that to add support for people who has their wp blog/ site set up just like me.
And thank you for making this plugin, it was just what I needed.
April 2nd, 2007 at 2:45 am
Good plugin, except that it only works with my posts, it does not work with my pages. Any ideas on how to fix that?
The theme I am using, should it matter, is – Andreas01-12.
Thanks in advance, hope you can shed some light on yhis problem
April 3rd, 2007 at 12:57 am
I have my WP blog set up in a subdirectory like Kristin, and tried installing the plugin both before I saw her tip, and after making her suggested adjustment, and neither time it has worked.
This is a plugin I *really* want for my readers. Any help would be appreciated!
April 4th, 2007 at 12:28 am
Eddie (19), the problem is within Andreas theme, it uses different DIV containers. Try using “post” DIV instead of “content”, although it will only change post’s font size.
April 4th, 2007 at 12:32 am
Dave (20), check the contents of the /wp-content/plugins/wp-chgfontsize/ directory. You must see 6 files. And remember that the subdirectory name (/plugins/wp-chgfontsize) is case sensitive.
April 7th, 2007 at 6:27 pm
I’ve just installed the plugin and it works fine, thank you Rodenas
have a nice Easter!
April 22nd, 2007 at 10:00 am
Unlike your blog, it only changes the size of the posts on mine. The sidebar remains the same size?
April 22nd, 2007 at 12:18 pm
Able-Mart, try using “wrap” instead of “content” as the DIV Base element.
May 29th, 2007 at 12:07 pm
Hi, for some reason its not showing up on my list of plugins, even though I’m pretty sure I uploaded it correctly. Any ideas? Thanks!
May 29th, 2007 at 12:09 pm
Oops! Sorry I’m a retard! It works now!
June 13th, 2007 at 2:50 pm
I love the idea of this plugin!
I’ve been using another javascript to achieve the same effect but a plugin is of course a much better option! Is there any potential release date for the widgetised version of the plugin please? Thanks!
June 14th, 2007 at 12:52 am
Mosey, my hope is to start working on the widgetised version in July.
July 11th, 2007 at 1:17 am
This is an update to comment #20 which I left in early April. After upgrading to WP versions 2.2.1, I tried this plugin again, and it installed perfectly.
July 20th, 2007 at 9:05 pm
Hi. A question and a sugestion. Making this a widget would make this plug-in one of the best ones. I wonder can the “code” be pasted in a text widegt and still function?
If anyone knows anything feel free to contact me, msn or email; aypeus@aypeus.org
Thx for creating this, your time reading this
Regards, Aypeus (Daniel)
July 22nd, 2007 at 10:52 pm
Daniel, I don’t know if pasting the code in a text widget will work. I suggest you to wait 2-3 weeks more, as actually I’m working in the widgetized version.
August 19th, 2007 at 4:05 am
It seems to be with just my installation, but I keep getting unsightly link borders around the images when I put it on my blog. Other blogs I’ve looked at who have this plugin installed DON’T have this problem, so I am not sure why this is happening. Does anyone by any chance has any suggestions? (I have removed the code from my sidebar in the meantime due to this issue. Not really sure if I can add a border=0 anywhere to fix it…
August 21st, 2007 at 11:41 pm
bev, just modify your css file and add something like this:
#chgfontsizeoptions a, #chgfontsizeoptions a:visited, #chgfontsizeoptions img {
border: none;
}
August 22nd, 2007 at 3:40 am
Thank you, Ferdy! I’ll go and add that to my CSS stylesheet now. Thanks for helping out
August 27th, 2007 at 9:46 pm
Hi Ferdy- Terrific plugin… installed fine and works effectively, but one question: The first time someone clicks the + size to enlarge, the font jumps to GIANT size, 24 point or something. Works normally after the first time. I’ve limited it to 14 pixels, but it still does the same. Any ideas? Thank you for your time, and a great plugin.
August 28th, 2007 at 1:25 am
Steve, I’m not able to reproduce the problem. Which OS + browser + version are you using?
In the meantime, I’ll do some tests with several configurations trying to reproduce it.
August 28th, 2007 at 2:52 am
Hi Ferdy- It happens with both IE6 and Firefox for me, which is strange. I’ll try it on some other computers and browsers. If you haven’t reproduced it, that’s good news. I’m using the Cutline theme and WP 2.1. Thanks for the reply and great plugin!
September 4th, 2007 at 6:22 am
Hi, I came with the same problem: with first click on A+ image, it jump to GIANT font size. but after the first click, it works fine. (I test it on FF2 and IE7,IE6 on Windows XP)
MY SITE: http://www.happysky.org
(It’s in Chinese but you can see the plugin on the top)
September 4th, 2007 at 7:21 am
OK, this is the solution:
Change the line 256 in wp-chgfontsize.php form
echo " chgfontsize_font_size = getCookie('wp-chgfontsize');\n";into
echo " chgfontsize_font_size = Number(getCookie('wp-chgfontsize'));\n";September 6th, 2007 at 2:52 am
Steve, the new version 1.2 solves your problem.
ppip, thanks for the solution. I just updated the pluggin to version 1.2 with the corrected code.
September 21st, 2007 at 6:36 pm
I’d like to get to be able to use the font size changer at the end of each wordpress post, (in addition to in my sidebar), and while I have php code execution enabled and working for each post, the images for the font size don’t display. Would this seem to be an issue with images inside posts rather than an issue with the font size php code? Thanks for any ideas?
September 23rd, 2007 at 7:06 pm
Thanks..
[…] Açıklamalı 232 WordPress eklentisi (Agu. 15, 2007 !!) (WordPress plugin list),[…]
October 2nd, 2007 at 11:52 am
Hi !
I’d love to use your plugin, as some people complain aout the font size of my blog but I don’t even manage to have the function appear…
I tried to put it in a text thing in a widget and it did not work. I later saw you mention that you are working on a widgetized version.
I tried to put it directly in posts but, again, it does not show up.
Where do I screw up ? Do I mention a wrong “div” ?
October 2nd, 2007 at 11:56 am
Seems I did not filled in all information (intervall, in particular). Now, it’s not showing in the sidebar, ok in the post, but not working yet. Probably my fault. I’ll work on it.
October 23rd, 2007 at 7:34 am
Whenever I click the image to change the font size, nothing happens.
October 23rd, 2007 at 6:41 pm
Erin, which is the URL of your site? Have you configured the plug-in at the Admin -> Options page? Be sure to specify the DIV container.
October 25th, 2007 at 10:42 pm
Yes I’ve done all that. It’s still not working. I included my url, just click my name.
October 26th, 2007 at 12:27 am
Erin, there was a conflict between two javascript function names. I’ve modified the chgfontsize plugin to avoid name duplications with other plugins. Download the new version 1.4 and don’t hesitate to contact me if you still have problems.
October 26th, 2007 at 6:48 am
It still isn’t working for me. I don’t know if it’s something I’m doing or what.
October 27th, 2007 at 11:14 am
I installed the plugin but obviously am missing font size background. My style sheet has defined as 62.5% so I put that as the default size – then picked 40 as min and 150 as max with 6 intervals. The pages showed up in tiny type and clicking on the display showing in the sidebar did nothing. I had to disable the plugin so the pages would be readable again. Please point me somewhere so I can learn how to set this up. Thanks.
October 28th, 2007 at 11:36 pm
Erin, sorry to say this, but I believe the plugin is not compatible with the theme you’re using. I have found lots of “content” DIVs on your main page, so the javascript function doesn’t know which one must change.
October 28th, 2007 at 11:41 pm
June, I have tested on my local machine the same configuration you pointed on your comment and it has worked for me. So I don’t know where is the problem. If you try it again, just drop me a line via the comment page and I’ll watch your site to figure out what is happening.
November 2nd, 2007 at 1:38 pm
hi, good plugin for the accessibility.
but the plugin doesn’t work in my website. how to configure it?
I have wordpress 2.3 and many themes widget ready
thanks for your help. i need your plugin for my readers
November 2nd, 2007 at 2:04 pm
Jéròme, at the wp-chgfontsize options page, change the DIV element value to “wrapper” or “content”. Hope this helps.
November 2nd, 2007 at 2:36 pm
Very thanks for you help. The problem is resolved.
Thanks for your speed answer. My frend who write with me on the blog have a low vision. your plugin give the blog easy readable for him.
thanks again.
November 6th, 2007 at 1:18 am
Hi Ferdy,
i have a new problem on my new blog: your plugin doesn’t appear, i have tried to slide the wpchgtfontsize widget in my widget leftbar but your widget is invisible! i have tried to delete and reinstall him but the problem is the same.
November 7th, 2007 at 12:49 am
Jérôme,
Check the contents of the /wp-content/plugins/wp-chgfontsize/ directory. You must see 6 files. And remember that the subdirectory name (/plugins/wp-chgfontsize) is case sensitive.
December 9th, 2007 at 8:24 pm
I keep getting the following error:
chgFontSize_getCookie is not defined
I’ve changed a couple of thing but I haven’t been able to fix it.
December 9th, 2007 at 8:25 pm
Oh.. I’m using the latest version. 1.4
December 9th, 2007 at 10:36 pm
Dario, which is the url for your site? I’ll check what’s happening.
December 10th, 2007 at 2:25 pm
http://www.natoura.com
December 10th, 2007 at 10:41 pm
Dario,
The problem resides in your wordpress header file, because the main javascript file is not loaded.
Check you header.php file to see if there is an statement that contains <?php wp_head(); ?>. If you don’t find this statement, add it at the end of the file.
Another option could be adding manually the next statement:
<script src=”http://www.natoura.com/natouraW/wp-content/plugins/wp-chgfontsize/wp-chgfontsize.js”> </script>
Hope this helps!
December 11th, 2007 at 1:33 am
Thanks a lot, I was able to figure it out, thanks to your help.
December 17th, 2007 at 7:41 pm
Hi Ferdy,
When you increase or decrease the text size it only seems to affect the ‘Posted in’ and not the actual post.
http://blog.yantotc.com/
Any ideas?
Thanks
Josh
December 17th, 2007 at 8:07 pm
Josh, at the Font size options page, change the DIV Base Element from “content” to “container” or “wrapper”.
December 17th, 2007 at 8:59 pm
Both container and wrapper still work like content (just resizes the ‘Posted in’… I viewed the source, and the text is within the wrapper, container and content tags…
Anymore ideas?
Thanks
Josh
December 18th, 2007 at 2:15 am
Josh, the problem is that the .entry and .post h2 classes, among others, specifies the font size in pixels, so they override the font size of the content, container and wrapper classes.
The only solution I see is not specifying the font size in pixels in these “low level” CSS classes. I suggest you to use percentages instead. If not, I’m sorry, but this pluggin will not work for you.
December 20th, 2007 at 4:32 pm
I removed the font size tags from those classes and it works!
Thanks for your help Ferdy!
December 22nd, 2007 at 12:23 am
Hi, I hate to be a bother…I seem to have the same question as a lot of others, but I’ve not been able to make their solutions work. Clicking on the icons (I’m not using the text) just doesn’t do anything. I’ve tested with Firefox and IE7. I believe “content” is the correct DIV tag to use, and it doesn’t appear multiple times on the site. I’ve removed any references in my CSS to font sizes according to pixels or em. In the config panel, I’ve tested it in ems, pixels, and percentage with no effect, small intervals, huge intervals, etc. I know that the plugin, consisting of 4 gif files, 1 javascript, and 1 php file, are in the right directory (all lowercase: …/wp-content/plugins/wp-chgfontize). I’m really at a loss, and hope that it’s something small I’m missing, as opposed to something wrong with my theme.
January 6th, 2008 at 8:01 pm
Hello: great pugin and very thanks for do it. I tried to install on a wordpress theme in a Intranet. This plugin it’s very important for my readers. I have been many troubles trying the installation
(only works on the side bar), but finally I find the DIV tag : “main” in more themes works very well
Very thanks Ferdy
(I beg your pardon for my english)
January 10th, 2008 at 8:29 pm
Where in my single post php file do I add the code for this plugin if I want it to appear in the upper right hand corner of each post? I’ve tried it in several places, but it ends up right next to the author name… I wouldn’t mind if it was on the same line, just aligned right. Please help.
Katie
January 12th, 2008 at 11:43 pm
Caroline, at the wp-chgfontsize options page, change the DIV element value to “center”, the min font size to 80, the max font size to 120, and the default font size to 100. Hope this helps.
January 12th, 2008 at 11:44 pm
Katie, I need to check the single php file. Please, send me this file.
January 31st, 2008 at 9:36 pm
I’m using the same theme as used on this weblog, or so it appears. Latest version of WP running, but however I do have some other plugins up. I deactivated them all, but still wp-chgfontsize is not working. I’m using the widgetized version. Subfolder has correct name, 6 files. What is the div you are using because I cannot seem to figure out which one i need (currently I have entered page, but I already tried sidebar and content). The plugin just does not show up (the widget). What am I doing wrong? Thx!
February 1st, 2008 at 12:43 am
Morgan, your div is correct, but seems that you didn’t specify the min, max, interval and the default font size at the pluggin options panels. Check the values and try again.
February 2nd, 2008 at 1:06 am
All I see in my widget box is “?a-??A+?
February 2nd, 2008 at 11:20 am
Sally, change the DIV element from “left” to “page” or “center-widget”.
Also, there is a bug in this version of the plugin and it only works with DIVs that are ID elements. So, in order to work properly with your theme, change your DIV element (instead of using div class=”page”, you must use div id=”page”). Or wait until I release a new version of the plugin (hope it will be next week).
February 13th, 2008 at 5:29 am
This doesn’t work on my IE7, but it does work in Firefox and Opera. Have you any idea what can cause this and if there is a solution?
February 17th, 2008 at 10:19 am
first I’m impressed with the effort you put in this awesome plugin… thanks
I hope you can help me sort out my problem; the plugin used to work like a charm on many themes which I used but on this one http://www.fulham.pl it distorts the layout (sidebar); I wonder why is this happening and how can I correct this; div is content (tried wrap, wrapper and nothing happens); ty in advance
February 20th, 2008 at 9:49 pm
Non-Constant Intervals:
Instead of setting min, max and interval, can I list my desired font sizes: 11, 12, 13, 15, 19, 23?
March 14th, 2008 at 5:23 pm
I can’t seem to get this to work in ie7 either, it works fine in Firefox 2. The drop down box works, the default button works, but no changes to the font size in the posts work in IE.
April 1st, 2008 at 9:14 pm
Hello, This plugin works great for WordPress 2.5. I’m wondering if you want to release the the bare bones code (with comments to be able to select the default font size and other options) for use on a site that is not based on WordPress? I’d like to use it on other sites, and have found that other font resizers just don’t work that well )and don’t have a default size control, either.) – Thanks, Mark
April 16th, 2008 at 6:52 am
Thanks a ton. I was looking for this for quite sometime!
April 16th, 2008 at 11:44 pm
I too am experiencing functionality issues with IE.
Tested with (Windows XP OS):
Opera 8.5x and 9.2x – both work great.
Firefox 1.5 and 2.x – both work great.
Safari 3.x – works great.
IE 5.5, 6.x and 7.x – none work at all.
I’ve tried all variations of available options (div element, units, display, etc.) with no success.
I love the idea behind this plugin and appreciate the efforts of the author and would love to be able to offer to my visitors, but am afraid that it will cause too much confusion amongst the users of the most popular browsers (IE).
Thanks, I would greatly appreciate any feedback as to a workaround or fix.
April 17th, 2008 at 12:25 am
PNOOZ, I’ve tested the plugin with IE (all versions) and works well in some sites (for example, in this blog) and doesn’t do anything in others. Actually, I don’t have a fix for this issue, I need to investigate what’s wrong.
April 17th, 2008 at 12:40 am
songdogtech, the code is released under the GPL. So you can modify it if you want. But if you just need to use it without any modification, you can download the code, and upload the wp-chgfontsize directory to your site. Then add the following code to your pages:
<script type="text/javascript" src="http://your site URL/wp-chgfontsize/wp-chgfontsize.js">
<!--
chgfontsize_element = 'page';
chgfontsize_min_font_size = 80;
chgfontsize_max_font_size = 120;
chgfontsize_interval_font_size = 5;
chgfontsize_units_font_size = '%';
chgfontsize_default_font_size = 100;
chgfontsize_units = chgFontSize_getCookie('wp-chgfontsize-units');
if (chgfontsize_units != chgfontsize_units_font_size) {
chgfontsize_font_size = chgfontsize_default_font_size;
} else {
chgfontsize_font_size = Number(chgFontSize_getCookie('wp-chgfontsize'));
if (chgfontsize_font_size == null) { chgfontsize_font_size = chgfontsize_default_font_size; }
}
chgfontsize_imgdecact = new Image();
chgfontsize_imgdecact.src = 'http://your site URL/wp-chgfontsize/decrease_activated.gif';
chgfontsize_imgdecdea = new Image();
chgfontsize_imgdecdea.src = 'http://your site URL/wp-chgfontsize/decrease_deactivated.gif';
chgfontsize_imgincact = new Image();
chgfontsize_imgincact.src = 'http://your site URL/wp-chgfontsize/increase_activated.gif';
chgfontsize_imgincdea = new Image();
chgfontsize_imgincdea.src = 'http://your site URL/wp-chgfontsize/increase_deactivated.gif';
chgFontSize_display(display_text (on / off), display_image (on / off), display_restore on / off));
chgFontSize();
//-->
April 17th, 2008 at 12:47 am
Jonathon, added Non-Constant Intervals as a to-do feature.
April 17th, 2008 at 2:08 pm
Sorry, I meant to add that I have discovered that if I leave the “DIV Base Element” field empty or blank that is has the opposite effect that I described in my previous post – the plugin will work with IE but not the others. Just thought that I would pass along in hopes that it will help someone figure out what’s going on.
Thanks again, Ferdy.
April 17th, 2008 at 2:46 pm
Sorry again, but I just made another discovery. I viewed your source and then mine and tried the following which worked:
I added the “id” element to my div tage and it now works in all browsers. Have successfully tested in IE 7, FF 2, Opera 9 and Safari 3.
I did have to tweak a few style sheet elements due to alignment issues, but I’m sure that this will vary by theme.
Hope this helps.
April 17th, 2008 at 2:53 pm
The tag was stripped from my last post it was:
If it gets stripped again, it’s the following less the angle brackets:
div class=”entry” id=”content”
April 17th, 2008 at 7:05 pm
Have now had more time to evaluate in all of the browsers available to me and found that my last post was a little premature. After testing in IE 5.5 and 6 I found major alignment problems. I edited once again to the following:
div class=”entry” id=”entry” and set the matching “Font Size” plugin “DIV Base Element” option to “entry”. I have since successfully tested in all browsers.
The “entry” class element in my stylesheet is the one that governs just the post and only the post. I only wanted to give the option to my visitors to resize the text of those posts. So, setup as I have, all functions well as desired.
The ‘div class=”entry” id=”entry”‘ tag referenced is found on my “main index template” under “presentation > theme editor” in my WP admin panel.
Apologies again for so many posts, just trying to be helpful. If it were possible to edit posts, I would have done so.
Thanks again for your excellent work!
April 23rd, 2008 at 1:04 am
PNOOZ, I’ve discovered what causes the bad behaviour in IE. Upgrade to version 1.6 and it’ll work well (I hope!).
April 23rd, 2008 at 6:48 am
How do I specify multiple DIV classes?
April 23rd, 2008 at 10:51 pm
Prasannah, you can’t specify multiple DIV classes.
April 24th, 2008 at 5:33 am
Re: comment 5306
Thanks for the bare font size changer code – I will use it on a static non-WP site where I don’t need all the extra functions of jquery or prototype. – Mark
April 24th, 2008 at 4:08 pm
April 26th, 2008 at 5:41 am
Thank you for this great plugin. It’s tough to make a site everyone can enjoy, and this helps tremendously.
May 7th, 2008 at 2:37 am
Is there a simple way to have the font size automatically reset to default on page refresh or click through to a new page? I find that with all of my various browsers when I set the font size larger or smaller, it doesn’t “stick” and the plugin will reflect one value when it is actually default. I hope that this makes sense, if not please click over to my site and give it a try and I believe that (hopefully) you’ll see what I mean.
Thanks
May 8th, 2008 at 4:25 pm
I’m having trouble getting the plugin to work properly. I’ve set all the settings, but it only changes the size of the titles, byline, and links, not the main text of the posts. There is only one main_content_shortened div (which is the div base element).
Thanks,
Matt
May 9th, 2008 at 12:24 am
Matt,
Add these lines to your CSS files and it’ll work:
.MsoNormal {
font-size: 1em;
}
May 9th, 2008 at 5:41 pm
Excellent. It works now.
May 23rd, 2008 at 4:43 pm
Hi. I can’t get this to work on WPMU 1.5.1 – Any suggestions? Also any plans for multiple divs in the near future? Thanks!
May 27th, 2008 at 12:07 am
jn,
- Which error are you seeing in your WPMU installation?
- There aren’t any short-term plans to support multiple divs
May 29th, 2008 at 6:33 pm
This is just the plugin I’ve been looking for. I assume I have done something wrong and that is why the widget plugin is not working on my site. I could use advice about how to get it to work. Thanks for your help and for not assuming I’ll know where to place the correct code if that’s what’s needed — I am new to using css.
May 29th, 2008 at 10:44 pm
It works now. I just needed to set it to posts instead of content, and it works for posts and pages. Sorry to bother you. Thanks for the plugin.
June 11th, 2008 at 9:30 am
Hi, thanks for sharing this plugin. I have decompressed and uploaded it into /wp-content/plugins/ but I can’t see the plugin in the WP-Admin > Plugins page. Any idea what is the cause of this problem or anywhere that I need to check on?
June 11th, 2008 at 10:59 am
I have a strange problem… I’ve been looking at the code for ages and can’t seem to see where it’s coming from. underneath where I have implemented the plugin, there are 3 extra links: A, A, and A… each with the titles decrease font size, default font size, and increase font size, respectively. They each appear on a new line directly below the images. Any ideas? thanks.
June 13th, 2008 at 12:12 am
Lawrence, check the contents of the /wp-content/plugins/wp-chgfontsize/ directory. There must be 6 files. And remember that the subdirectory name (/plugins/wp-chgfontsize) is case sensitive.
June 13th, 2008 at 12:13 am
Darryl, after checking your site, seems to me that the plugin is working as expected now. Let me know if the problem persists.
June 24th, 2008 at 8:39 pm
Hi there,
Know anyone which plugin to use if I want only the first part (first paragraph) of the article to be displayed? If someone want to read more there will be a “read more” link…
On my blog right now is displayed all of article content and I don’t want this…
I’m talking about the latest 10 articles displayed on the first page of my blog.
I’m using WordPress.
Can anyone help?
July 6th, 2008 at 11:15 pm
Thank you for this handy plugin!
I’ve spent some time today customizing the output a little bit. Not that the plugin would need any improvement, but a certain project I’m working on does require some visual changes here and there. So I added an image for the “default font-size” option and coded its usage into the files. I also customized the link title-attributes, planning localization for the whole plugin in the near future.
If you’re interested in taking a look at the code now, please send me an email and I’ll be happy to email a ZIP back.
There’s no way to see the customization in action, unfortunately, for the project site is under construction pw-protected.
Keep it on!
Caspar
July 7th, 2008 at 10:34 am
Update:
Issue in IE 6 on Win XP SP2
Plugin settings:
Restored to the original, non-customized 1.6. version
Images = activated, Restore to default = activated, DIV Base element = page
Description:
After one click on the “A+”-image both of the images (“A+” and “a-”) disappear.
The wrapping links stay functional, though, will say: I can click on the empty links and the script itself keeps working fine. I can also see the “Default” text-link. Just the images are gone and won’t re-appear unless the whole page is refreshed.
Attempts:
None so far. I have no idea what’s happening except it might have to do with the image paths being corrupted in IE?
Thank you for ANY ideas!
July 8th, 2008 at 1:10 am
Caspar, it’s very difficult to analyze what’s happening without being able to see the plugin in action.
Have you tried other browsers, like FF, Safari or even IE 7? Did you see the same strange behavior using those browsers?
One suggestion, check the html code generated, and look for the chgfontsizeimginc or chgfontsizeimgdec id’s. These are the vars where the images are stored. If you can save the html page, send it to me and I’ll try to analyze what’s happening.
July 8th, 2008 at 6:31 pm
Ferdy, thanks for your reply. I’ve switched to the drop-down option meanwhile and will keep working with it until this project is done.
Nevertheless, I’ll keep your hint in mind and will look at the image option again afterwards. Whatever I’ll find, I’ll let you know.
Thanks again!
July 23rd, 2008 at 2:17 am
Ferdy,
Thanks for the code listing way back in April; I’m trying to get the font size changer to work in a non-Wordpress site. I have the js link data you posted in my pages and wp-chgfontsize directory in place. Now I get this error in my test index page
Call to undefined function: get_option() in wp-chgfontsize.php on the line that begins $chgfontsize_div_element = get_option(‘chgfontsize_div_element’);
Seems like wp-chgfontsize.php isn’t able to read the options that used to be in the database and now are in the page header?
Thanks for any help, Mark
July 23rd, 2008 at 11:29 pm
Hi,
I install WP-chgFontSize 1.6 in plugins.
I filled some Font Size options
DIV Base Element, as entry, since other words doesn’t regognize.
But the changes in my site just only in paragraphs’ lines intervals.
I have no changes in font size.
What can I do?
July 24th, 2008 at 12:53 am
songdogtech, it seems that you’re invoking the wp-chgfontsize.php file. You can’t do that, because it only runs under a wordpress installation (unless you’ve modified it). In order to use the font size functions, you don’t need the php file. Just link the js file on your pages and use the javascript code I wrote in my earlier comment.
July 24th, 2008 at 12:56 am
Adam, it could be that the DIV element specified is incorrect or the CSS file overrides some font size options. If you provide me your blog URL (as a comment on this post or using the contact form), I could check your site and tell you what’s wrong.
July 24th, 2008 at 6:05 am
Ferdy, Hmmm….. Reason I tried linking the php file is that I thought I needed to call in the body of the page in order to display the increase/decrease images.
I’ve tried the js in the head and the body of the page but no luck. My links to the js file and images are correct.
I don’t know much javascript
!!
- any ideas? Thanks, Mark
July 24th, 2008 at 8:58 am
Mr Ferdy
I use as DIV element entry word, since other words can’t recognize.
Thanks
July 24th, 2008 at 12:03 pm
This is a great plug in
July 25th, 2008 at 8:55 am
I install WP-chgFontSize 1.6 in plugins.
I filled some Font Size options
DIV Base Element, as entry, since other words doesn’t regognize.
But the changes in my site just only in paragraphs’ lines intervals.
I have no changes in font size.
What can I do?
Sorry, the problem is on
July 29th, 2008 at 8:44 am
Anybody, can answer my question?
July 29th, 2008 at 11:57 pm
Adam, you’ve a <span style=”font-size: small;”> before each paragraph. This sentence overrides the wp-chgfontsize style.
July 30th, 2008 at 10:14 am
Hi Ferdy,
Thank you for the reply.
In my “style.css” file there is neither “span style” nor “span style=”font-size: small”
These are “font-size” in my style.css
h1 {font-size: 1.5em;}
h2, h3, h4 {font-size: 1.2em;}
.date1 {font-size: 3em; display: block; color: #fb3;}
.date2 {font-size: 2em; display: block;}
.date3 {font-size: 2em; display: block; font-weight: bold; color: #fb3;}
.rockit {text-align: right; border-top: 1px dashed #b80; font-size: 0.8em; clear: both; padding: 5px 10px 0 10px;}
.pageInfo {font-size: 0.8em; color: #aaa; text-align: right; border-top: 1px dashed #ccc; border-bottom: 1px dashed #ec5; padding: 1em; clear: both;}
.boxedin {padding: 0 0.5em; margin: 0 120px 20px 0.5em; font-size: 0.9em;}
#newheader h1 a {font-size: 2em; color: #f90;}
#newheader h2 {color: #f90; padding-right: 20px; margin-top: 10px; font-size: 0.9em; font-weight: normal;}
#column1 h2 {font-size: 1.5em;}
#column2 {float: left; position: relative; width: 185px; margin-left: -185px; font-size: 0.8em;}
#column3 {float: right; position: relative; width: 178px; margin-right: -178px; font-size: 0.8em;}
#footer {background: url(‘images/shadow_footer.png’) top left repeat-x; font-size: 0.8em; clear: both; padding: 20px 10px; margin: 0 210px 0 230px;}
#back {clear: both; font-size: 0.8em; text-align: right; padding: 0 10px; clear: both; margin-top: 20px;}
#nav, #nav ul {text-align: left; font-size: 1.1em; list-style: none; font-weight: normal; z-index: 8;}
#nav li ul {margin: 0; padding: 0; font-size: 1em; border: 1px solid #ddd; background: url(‘images/page_nav.png’) repeat #eb5; position: absolute; left: -999em; height: auto; width: 14em;}
#breadcrumbs {position: absolute; font-size: 0.8em; top: 6px; left: 5px; text-align: left; text-transform: lowercase;}
#searchCSS {font-size: 0.9em; position: absolute; top: 6px; right: 5px;}
#searchsubmit {font-size: 10px; background: #fff url(‘icons/icon_search.gif’) 1px 1px no-repeat; cursor: pointer; padding: 0 0 0 15px; border: 1px solid #ca3;}
.comment_no {padding: 10px 0; float: right; font-size: 3em; color: #ec5;}
.commentmetadata {border-top: 1px dashed #ec5; clear: both; text-align: right; font-size: 0.8em; font-weight: normal; color: #ca5; margin-top: 20px !important;}
.icons dt {margin: 0; padding: 0.5em; font-size: 1.1em; font-weight: bold; color: #fff; background: url(‘images/portlet_header.png’) !important;}
.newfont { font-family: Arial, sans-serif; font-size: 1.1em; color: #000000; }
July 30th, 2008 at 7:35 pm
Ferdy, Hah! – I finally figured how to get the font sizer to work in a non-Wordpress page. Between the js code you listed and looking at the source for a WordPress page where it does work, I figured out the settings. Thanks – Mark
July 31st, 2008 at 2:05 am
songdogtech, nice to hear that.
July 31st, 2008 at 2:10 am
Adam, the span style is located in your index.php and single.php files, not in your style.css file.
August 15th, 2008 at 5:38 pm
Does anyone else have the issue where wp-chgfontsize is not reading the stored cookie?
Everything works fine, however when I go to another page/post the font size always resets (even though the correct value is in the cookie).
Any thoughts?
Thanks! Great plugin.
August 17th, 2008 at 3:15 pm
i have a couple questions regarding the output of the plugin:
1) i plan to use the “image” format of the plugin (Display Font Size Values as: Image) in the sidebar, but the problem is, i also want to place text next to the images as a label. for example, the format i desire would be:
[a-] [A+] Resize Text
for the plugin, i just have this in my sidebar: ” Resize Text ”
the problem is that the plugin seems to automatically create a new line after the images, so in my sidebar, i get:
[a-] [A+]
Resize Text
is there a way to place text on the same line, but after the images the plugin generates?
2) the plugin also puts two spaces between the [a-] and [A+] images when it outputs them into the sidebar (it also puts one space before and one after).
is there a way to remove the two spaces (or reduce to just one) so that the images are directly side by side?
thanks for any help you can offer, and great work on the plugin
August 17th, 2008 at 3:18 pm
whoops, the code part didn’t display… basically i just have the piece of code you suggest above for placing the plugin in the sidebar, with “Resize Text” next to it, which produces the “Resize Text” on the line below.
September 2nd, 2008 at 7:40 pm
Hello Ferdy!
Thanks for your work on the plugin!
One improvement suggestion, though: Can you add a -Section to the output of the plugin so that it doesn’t display anything on a non-ActionScript-enabled browser?
Kind regards,
Loona.
September 2nd, 2008 at 7:43 pm
D’oh! – WordPress swallowed part of my posting… I wrote:
Can you add a <noscript>-Section…
September 5th, 2008 at 11:14 am
does the plugin work with WordPress 2.6 ?
September 11th, 2008 at 12:46 am
Loona, added as a new feature.
September 11th, 2008 at 12:47 am
Kugelblitz, yes, it works with WP 2.6. I’ll update the plugin description soon.
September 14th, 2008 at 2:45 am
Excellent plugin Ferdy, my site is running on the latest version (2.6.2), the code shows (view source) but the function seemed invisible on the page. I tried the widget variant and the same thing happen except for the description I keyed in. Your assistance is much appreciated.
September 14th, 2008 at 11:57 pm
Rob, there must be a javascript error. If you provide me your blog URL (as a comment on this post or using the contact form), I could check your site and tell you what’s wrong.
September 16th, 2008 at 7:33 am
This plugin is a great piece of job!
I would just ask if:
1) is it possible to make the plugin resize not just the font, but also the size between lines so we do not get things messed up with bigger fonts? Maybe it is possiblem with some CSS options, and in that case, let me know how to do that!
2) choosing the proper DIV to be resized is great, and I was here wondering if would it be possible, in the future, to have differents plugin calls in each post, so readers could only resize the specific post they choose.
Well, anyway, I thank you a lot for that plugin!!
September 16th, 2008 at 7:44 am
Oooops, I forgot to ask:
3) choosing “post” as my DIV, I can have the plugin resizing just posts, but it excludes the title and the biggest problem, includes the bottom div I have to links like Comments, Print, etc.
4) is it possible, in the form where we choose the DIV, to exclude some besides including?
September 24th, 2008 at 2:58 am
Great plugin, but also having problems with WordPress 2.6.2 the same as Rob described – any suggestions?
September 24th, 2008 at 12:36 pm
Cyanobacteria, did you add the code manually or you installed it as a widget?
September 25th, 2008 at 2:52 pm
Hey Ferdy – tried both methods. It works fine if you hack the javascript and embed that directly, just not as a php script. Is this my stupidity or a 2.6.2 conflict?
October 7th, 2008 at 2:07 am
Hi there Ferdy,
Great job on this plugin – however I can’t seem to track down why the paragraph text on this site won’t resize using the plugin?
If you could take a look, it’s http://www.7folio.com/redwoods – would be most grateful.
Thanks!
October 8th, 2008 at 1:14 am
Ben, because you’ve a <span style=”font-size: 12pt;”> before each paragraph. This sentence overrides the wp-chgfontsize style.
October 8th, 2008 at 7:13 pm
Thanks for the reply – but which file is causing this? it’s not in the CSS!
October 12th, 2008 at 11:21 pm
Hi,
First of all, thank you for this great plugin!
I have the same problem as damian.
Everything works fine, however when I go to another page/post the font size always resets (even though the correct value is in the cookie).
Any ideas?
November 7th, 2008 at 12:32 am
Line Height resolved:
To change the line height, add this code to your targeted Div ID or class:
line-height: 150%;
You can tweak the percentage of course, but this works well for me.
December 10th, 2008 at 11:57 am
This is a great plugin.
December 12th, 2008 at 7:56 pm
I’m having trouble getting it to show on my wordpress site. It shows in my settings and widgets when I’m logged into my dashboard, but on the actual site, there are no buttons for resizing the text. I’m using wordpress 2.7. Could that be part of the problem?
December 13th, 2008 at 8:08 pm
I cannot seem to get it to work wtih WP 2.7. I installed it as a widget. I have checked for the overwrites but don’t think that is the problem. Any idea?
December 14th, 2008 at 8:40 pm
Many thanks for this plug in! I like it. The installation was very easy. Good work!
January 5th, 2009 at 9:31 am
Support fo this plugin has stopped? It is not working in WP2.7
Too bad… Will there be any updates?
January 10th, 2009 at 2:25 am
George, it works in WP 2.7. I’ve updated the plugin description.
January 13th, 2009 at 12:43 am
I had no problems with version 1.5 of this plugin when I upgraded to WP 2.7. I did upgrade the plugin to 1.6 and had no problems with it in Firefox or Safari. However, it did not show up in IE7. So, I returned to version 1.5 and am very happy with this great plugin. Thank you Ferdy.
January 21st, 2009 at 1:37 pm
Thanks for great work!
I am having problems showing the plugin in my sidebar?
Please help.
Espen
January 27th, 2009 at 11:49 am
This plugin does NOT work in WP 2.7. The widget is empty and putting the code in the theme also does NOT display anything…
January 31st, 2009 at 7:30 pm
I´m also having a problem getting this to show up in WP 2.7. I installed it in the plugins directory but it doesn´t show up in the plugins list. I do have the settings option in the WP Dashboard but the widget just displays the heading and nothing else.
Any help?
WebWizz
February 6th, 2009 at 10:29 pm
I am also having this issue. I install the plugin, I have a msg saying it’s installed, but it does not show up in my list of installed plugins, and it will not display on the public website. I am able to access the menu options.
February 6th, 2009 at 10:34 pm
Ok…I got mine to show up in my list. I was using the automatic install option in WordPress 2.7…and noticed that the actual files were nested.
If you upload the folder to where the two php files are in the root, the plugin displays in the list.
February 6th, 2009 at 10:58 pm
I’m still having issues is getting it to show up on the public side…and wondering if it is something I might be doing / not be doing in the settings…
February 7th, 2009 at 3:47 pm
Hi, thanks for the great plugin. Just wondering if there is a way to add ALT tags to the text icons (say, “Make Text Larger” and Make Text Smaller.” I know it sounds picky, but the four text graphics are failing my project site in the FAE Accessibility Evaluator because they don’t have ALT tags.
February 10th, 2009 at 2:46 pm
Hey! It’s a great plugin, but there are still some bugs. The following is what I would love to be cheanged:
1. The plugin doesn’t work if you chose in the options page to show the default font size button, too!
2. It would be great if the added styles on the divs could have a “!important”, because I often use the -tag to define the font size!
greatings
.wired
February 17th, 2009 at 2:36 pm
thank you very much for this great plugin. I use it on a band-site which has three different languages and I wonder if it’s possible to get your plugin gettexted. Than it would be easy to create different .mo-files.
This is the only thing I miss and unfortunately I’m not this good in javascript…
February 23rd, 2009 at 11:09 pm
Like many other people above, I installed this plugin in my WP2.7 site but it dgign’t show up on the page. A quick look at the code being generated and the files installed showed that the auto-installation is faulty. It creates an extra, unrequired directory layer under “plugins”. Fix that by moving files to where the code on the page wants them to be and the plugin then works.
March 15th, 2009 at 6:44 pm
Great plugin, except that the chgFontSize() function is called before the page is finished loading. At a minimum, it has to be called in the footer of the page. The other option is to do it after page load. Here is a patch to do it after page load:
*** wp-chgfontsize/wp-chgfontsize.js 2009-03-01 21:52:16.000000000 -0500
--- wp-chgfontsize2/wp-chgfontsize.js 2009-03-15 13:23:06.000000000 -0400
***************
*** 160,165 ****
--- 160,179 ----
}
}
+ function chgFontSizeAddLoadEvent(func) {
+ var oldonload = window.onload;
+ if (typeof window.onload != 'function') {
+ window.onload = func;
+ } else {
+ window.onload = function() {
+ if (oldonload) {
+ oldonload();
+ }
+ func();
+ }
+ }
+ }
+
var chgfontsize_element = null;
var chgfontsize_min_font_size = null;
var chgfontsize_max_font_size = null;
***************
*** 167,169 ****
--- 181,186 ----
var chgfontsize_units_font_size = null;
var chgfontsize_default_font_size = null;
var chgfontsize_font_size = null;
+ chgFontSizeAddLoadEvent(function() {
+ chgFontSize();
+ });
diff -crB wp-chgfontsize/wp-chgfontsize.php wp-chgfontsize2/wp-chgfontsize.php
*** wp-chgfontsize/wp-chgfontsize.php 2009-03-01 21:52:16.000000000 -0500
--- wp-chgfontsize2/wp-chgfontsize.php 2009-03-15 13:25:23.000000000 -0400
***************
*** 87,93 ****
echo "chgfontsize_imgincdea.src = '" . get_bloginfo('wpurl') . "/wp-content/plugins/wp-chgfontsize/increase_deactivated.gif';\n";
}
echo "chgFontSize_display('" . $chgfontsize_display_text . "', '" . $chgfontsize_display_image . "', '" . $chgfontsize_display_restore . "');\n";
- echo "chgFontSize();\n";
echo "//-->\n";
echo "\n";
}
--- 87,92 ----
***************
*** 334,337 ****
add_action('plugins_loaded', 'widget_wpchgfontsize_init');
! ?>
\ No newline at end of file
--- 333,336 ----
add_action('plugins_loaded', 'widget_wpchgfontsize_init');
! ?>
April 14th, 2009 at 5:28 am
Thanks. I love the support here. I was having problems with the line height issue, and found the fix mentioned above. Yeah!
April 16th, 2009 at 8:58 am
this is working great. thansk a ton
May 27th, 2009 at 10:32 pm
thanks…
June 1st, 2009 at 6:19 am
I am interested in using your plugin. How can we change the “default text” so it adds a gif rather than the word default.
THanks,
cr
June 12th, 2009 at 8:48 pm
Not sure if you know this but your Font Size controls do not show up in your black header navigation. Both in IE7+ and FF.
June 12th, 2009 at 10:58 pm
John, Thanks. Fixed.
June 14th, 2009 at 1:47 pm
Ferdy,
I am trying to get your plugin to work (hear good things). I uploaded to plugins folder, activated it but don’t seem to be able to find ‘options’ to set it up. I am using WordPress 2.7.
Any help would be appreciated.
June 17th, 2009 at 10:35 pm
I installed and activated the plugin, updated the font settings, and added the widget. It appears on my blog but when I click on the increase or decrease images nothing happens. Any ideas? I am using WP v2.7 and IE7 browser. I also noticed that when I hover over the images the code in the lower left corner of my browser says ‘javascript:void(0);’. That doesn’t seem right.
Thanks for the help.
June 18th, 2009 at 4:26 am
Hi, thanks for putting this together, but it doesn’t seem to be working on my site: http://www.elderguru.com. I have WP 2.7.1 and the widget in the top right sidebar. It’s visible, but the text won’t change. Any ideas?
My site is geared toward older people, so this would be really helpful. Thanks again.
June 19th, 2009 at 1:06 am
Elderguru, change the DIV element from “15” to “page” or “content-box” at the Font Size options page.
June 19th, 2009 at 1:08 am
Crystal, this behavior is usually related to the DIV element configuration. I need to see you site in order to check what’s wrong.
June 19th, 2009 at 1:09 am
Drew, you can find the options page at the administration page -> Options -> Font Size.
June 19th, 2009 at 7:43 am
Hello, thank you for this great plugin. It started to work after I changed DIV Base Element to appropriate one. I have a question. I want to change the words “Text Size” to different language(Text Size: a- A+ Default). Where can I edit? I tried to change some part of wp-chgfontsize/wp-chgfontsize.php however I could not find it.
Thank you for your help.
June 23rd, 2009 at 3:31 pm
Ferdy, thanks for responding. The site I reference is http://toolsforshuls.com/. I added the widget to the top of the left column, which I recently removed because of it not working.
June 23rd, 2009 at 8:25 pm
After changing the DIV Base Element, it worked! Woohoo!
June 25th, 2009 at 12:02 pm
This doesn’t seem to work in WP 2.8, any solution ?
http://wordpress.org/support/topic/283797?replies=1#post-1115960
Thanks,
Tal
June 26th, 2009 at 9:17 pm
I recently changed my wordpress theme and my blog now loows more beautiful except that the fonts on the widgets are messed up. I uploaded the plugin and it says it uploaded okay but it doesn’t work. I am using wordpress 2.8, any help would be appreciated. Thanks and have a great day!
July 11th, 2009 at 10:10 pm
I installed this plugin, but it doesn’t seem to be working — the buttons don’t show up. Am I doing something wrong? I filled in the three parameters and used post-wrapper as the DIV. Thanks!
August 4th, 2009 at 1:24 am
The font size does not show on my site. why is this so?
August 4th, 2009 at 2:04 am
modo, did you added the widget? or did you added the php code to your theme? I’m unable to see the call to the font size function at your blog.
August 4th, 2009 at 8:47 am
Hi,
I added it to the widget. You can check it again.
August 4th, 2009 at 12:56 pm
modo, you must specify the Font Size Interval at the options page.
August 4th, 2009 at 10:33 pm
Thanks. I fixed it.
August 4th, 2009 at 10:56 pm
One more thing, when i select the kind of font size i want, the page font size does not change. It just remains static.
August 4th, 2009 at 11:19 pm
modo, the problem is that the theme you’re using at your blog specifies the font size in some “low level” CSS classes. For example. the .entry ID specifies “font-size:12px;”, and this class is below content, so it overrides the font size used by the plugin. So, I’m sorry, but this plugin is not compatible with that theme.
August 18th, 2009 at 12:30 pm
Dears,
I am still having a problem: with bigger sized fonts, each tet line starts to over-pass the other. But I see that it does not happen here in this site, for instance.
How could I avoid such a problem??
August 20th, 2009 at 10:57 am
hi,
I can’t use plugin.it don’t change anything!
i tested:
body;
content;
wrap;
post;
and etc.
but nothing happened!
please help me!
regards,
Persian Palas
August 25th, 2009 at 5:31 pm
Thanks for this plugin. It works fine except for lists as the font size remains unchanged. How can I correct this problem?
August 25th, 2009 at 8:56 pm
Doesn’t seem to work on 2.8.4, at least, not on my clients blog…
Tried changing DIV based element to page, content, content_box to no avail.
Theme is Athualpa, could that the problem?
September 5th, 2009 at 11:12 pm
I’ve upgraded a client install to 2.8.4 and the plugin is no longer working. All I see is the text that says “Change Font Size”, but it’s not linked. Should I just deactivate it?
September 14th, 2009 at 1:12 am
Arjan, Heather, this site is running WP 2.8.4 and the plugin works well. I need to see the site in order to check what’s wrong.
September 14th, 2009 at 12:22 pm
Hi Ferdy – it’s the upper right hand corner of http://www.bipolarscotland.org.uk
September 14th, 2009 at 10:57 pm
Heather, delete and reinstall the plugin again. It seems there’s something wrong with the subdirectory that contains the plugin files (I got a 403 error each time I tried to access them).
September 16th, 2009 at 6:12 pm
That did the trick! Many thanks.
December 10th, 2009 at 2:44 pm
Hi, great plugin, thanks a lot. I’m using it on a site, and was wondering if its possible to display it not in a separate div, but along side other icons (without a )?
thanks
December 21st, 2009 at 12:59 pm
Hi and thank’s for a great plugin.
I needed to apply Robert Felty’s (thank’s a lot for that, Robert) patch however to gain all functionality (especially for keeping the font size after adjusting), since executing the javascripts before the content containers are laoded obviously will not work.
February 10th, 2010 at 12:53 pm
I can’t seem to get this plugin working. I am using the latest version of wordpress (2.9) and it just does not seem to work. I have no idea what to do.
February 17th, 2010 at 12:35 am
We’re using this plug in on a site which is running 2.7 and 2.9.2 – We had an issue this morning where after a pdf file was uploaded, we had a database collapse. We took the database out and created a new one, importing a clean back up (after we had discovered tampering on the old db…) now when we run this plug-in, we get the following error. (The error has been isolated to this plug-in)
WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘order ASC’ at line 1 for query SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN (‘category’) AND ( t.term_id 1 AND t.term_id 7 AND t.term_id 10 AND t.term_id 13 AND t.term_id 4 AND t.term_id 3 AND t.term_id 12 AND t.term_id 8 AND t.term_id 9 AND t.term_id 11 AND t.term_id 13 ) ORDER BY order ASC made by require, require_once, include, get_sidebar, locate_template, load_template, require_once, wp_list_categories, get_categories, get_terms
Any thoughts of suggestions you have as to why the plug in is causing db issues would be appreciated.
Thank you,
February 17th, 2010 at 2:28 am
Tony,
It’s really strange, as this plugin doesn’t access to the wp tables. It only stores some options vars, using the standard wp functions.
Try this one: explore the wp_options table (using phpMyAdmin or something similar) and delete any row that contains the words “chgfontsize” or “wpchgfontsize”. Let me knows if this helps.
February 17th, 2010 at 4:19 pm
Ferdy,
Thanks for getting back to me on this. I scoured the wp_options table two ways and didn’t find any entries. I don’t get it. We’ve disabled the plug-in for now and are looking at the server to see what’s going on in there as well.
If I can find anything more helpful, I will be glad to let you know what I find.
Thanks again for the assistance,
Tony
February 23rd, 2010 at 12:06 am
Can you provide more information on other wordpress plugins, or do you have some resources you can share with us where we can find such useful stuff? Thanks.
March 6th, 2010 at 11:05 pm
I can’t get this to work on WP 2.9.2.
April 1st, 2010 at 12:43 pm
Hello Ferdy,
I am very impressed with your plug-in and wanted to have it available for the site I am helping with for a local dance club. As some of our members are old, we would love to utilize this plugin, however we cannot seem to get it to work? Any pointers?
Thank you for your time, plugin, and quick response.
Some Guy
May 2nd, 2010 at 3:20 am
Hello,
I can’t get this plugin to work with my WP2.9.2 php5.
Can you help me … please?
June 28th, 2010 at 2:43 pm
Hello!
At the bottom of your post there is a widget that allows to share the post using twitter, facebook, and other. Don`t you know where can I find this plugin for wordpress?
June 28th, 2010 at 10:18 pm
Alex, the widget is SexyBookmarks.
July 3rd, 2010 at 3:03 pm
Thanks a lot for yet another super article. I am always trying to find good WordPress tricks to suggest to my clients. Thanks for creating this article. It’s just what I was trying to find. Truly wonderful post.
July 19th, 2010 at 6:33 pm
Hi man, great plugin! Thanks to keep it update.
One note (ah no, two notes
):
Function: register_sidebar_widget()
Used in wp-content/plugins/wp-chgfontsize/wp-chgfontsize.php on line 356.
-
Use wp_register_sidebar_widget() instead.
Deprecated in version 2.8.
Function: register_widget_control()
Used in wp-content/plugins/wp-chgfontsize/wp-chgfontsize.php on line 357.
-
Use wp_register_widget_control() instead.
Deprecated in version 2.8.
I hope you’re able to adjust these things for the next (soon
) update.
Thanks again.
July 20th, 2010 at 6:31 am
hi, very nice plugin you made
i get this error on mozilla , although the plugin seems to work:
Error: jQuery(“.fontResizer”).fontresizermanager is not a function
Source File: http://www.goldenmag.gr/wp-content/plugins/font-resizer/js/main.js?ver=3.0
Line: 2
and this error on IE:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET4.0C)
Timestamp: Tue, 20 Jul 2010 04:29:16 UTC
Message: Object doesn’t support this property or method
Line: 2
Char: 2
Code: 0
URI: http://www.goldenmag.gr/wp-content/plugins/font-resizer/js/main.js?ver=3.0
Any ideas?
thanks in advance!
July 21st, 2010 at 12:57 am
Cristian, thanks for your notes. I’ll update the plugin soon.
July 21st, 2010 at 1:00 am
Michael, the error is not located in wp-chgfontsize, the problem is in the font-resizer plugin.
July 26th, 2010 at 9:33 am
Have there been any peer reviewed studies on the optimal fonts, sizes or colors for displaying web pages?
August 10th, 2010 at 4:09 pm
I tried a load of other plugins claiming they did this job and kept deactivating them as they were clunky or just didn’t have the right information included to help you run them. Yours does the job, is really simple to use and is great – thank you!
The only problem is that when you search the WP plugins page for ‘text resize’ or ‘font resize’, yours doesn’t appear. I only found it through google. It may be because the name of the plug-in is all one word and the WP search engine isn’t good enough to work out what it’s saying?
Leave a reply or a trackback from your own site
Please be respectful in your comments. Do not use fake names or email address, otherwise your comments will be moderated.