It may just be me, but I think it's a bit odd to have a decrease text size button. I am guessing most people are using this module for accessibility purposes, to help users with sight problems easily enlarge the text. I can't really imagine there being that many scenario's where you'd want to decrease the default text size.

It would be quite nice to set the decrease text-size as the default, and then using fixed increases set normal and increase to both enlarge the text size to a specific level. Or something similar to this to the same effect (maybe there's a simple solution).

Thanks

Comments

CZ’s picture

hi leon.nk

This is possible by editing the Text Size templates in your theme, and delete the link "Decrease", see Help under "Theming".

But i can do it in the configuration page like admin/settings/textsize#edit-textsize-display-normal. But i think default off is not so good.

leon kessler’s picture

Hi Christian,

Thanks for the help.

What I really wanted was three fixed sizes, with the default being the lowest. Just like on direct.gov.uk

I ended up creating an extra increase button (which I called ts_largest). This would increase the text size by textsizeIncrement * 2.

This works fine, but for some reason the text sizes aren't saved when going to a new page. I checked the cookie, and it's getting set. Christian, can you tell me which function handles the resizing of text from the cookie/session? As I can't find it right now.

Thanks

CZ’s picture

Hi leon.nk

What I really wanted was three fixed sizes, with the default being the lowest. Just like on direct.gov.uk

Easy, check the box "admin/settings/textsize#edit-textsize-link-type-fix" and save the settings. That's it!

leon kessler’s picture

Hi Christian,

What you said would not make the decrease text size the default and minimum. I had to create the extra "double-increase" button and remove the decrease button (so just having normal, increase, and double-increase).

However, I am still having problems with text-sizes not being set from the cookie, it must have been something I changed when I created the new button. I can't see where in jquery.textsize.js the cookie is read and the text size is set on page load. Can you give me any help on this one?

Thanks a lot.

EDIT:
Don't worry found it, in testsize.module textsize_print_html()

CZ’s picture

For "double-increase" enter in "admin/settings/textsize#edit-textsize-increment" the double value (for example 10%), check the box "admin/settings/textsize#edit-textsize-reset" and copy the templates to your theme and remove the decrease code.

I can integrate a settings box in the configuration page for removing the decrease link.

(so just having normal, increase, and double-increase)

A increase and double-increase link is possible with a big hack.

CZ’s picture

Status: Active » Fixed

Thank you Leon. Fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.