Is there a way to resize ALL text on the site when you click a button? I tried using id "body" but it only resizes middle content. Is there another tag or html that will make changes to the entire page, blocks and all? Or everything below the header?

Also, Is there any way to insert the button in the very upper header portion instead of in a block? i'm using pixture reloaded theme.

Thanks, great module

Comments

attheshow’s picture

Version: 6.x-1.2 » 6.x-1.x-dev
Component: Miscellaneous » Code
Assigned: Unassigned » attheshow
Category: support » bug
Status: Active » Fixed

Dear IWasBornToWin,

This looks like a bug in the code. I reordered things a bit in the primary Javascript file, so that it works better with themes such as Pixture Reloaded. I've committed the change for this. Would you mind testing the development version of the module (6.x-1.x-dev) for February 22 when you get a chance and let me know if the change works for you?

attheshow’s picture

Oh, and regarding inserting the block into the header, the Pixture Reloaded theme appears to have a region called "Header blocks". That's about the closest you can get to the top of the page. As far as placement of blocks, that's up to your theme to define the appropriate regions for placement of blocks. You might be able to scoot it up further by putting a negative margin on the CSS of the block.

As far as moving it to something else other than a block, I personally don't think this is a good idea and I don't know of any other system that's a better option than a block. Let me know if you have any good ideas on this.

IWasBornToWin’s picture

I tried your dev module and it's doing the same thing. To ensure you know what i'm asking, I have blocks on both sides of my pages www.iwasborntowin.com/drupal and when I increase text size, all the content in between those block increases. Is there a way to also increase all the block, on both sides of the pages?

attheshow’s picture

Today's dev version hasn't been repackaged yet. It's still showing the Feb 5th package at the moment. The Drupal project system repackages CVS code into dev snapshots every 12 hours. Please keep watching for the Feb 22nd dev snapshot, or you can check out the latest code from the CVS repository.

attheshow’s picture

Dear IWasBornToWin,

Did you get a chance to check out the latest development snapshot once it was posted?

IWasBornToWin’s picture

I will try to test it out today. Thanks!

IWasBornToWin’s picture

No feb 22nd showing. The only one I see is dated feb 08? and it's not a dev snapshot. It's for version 6? You want me to try this one?

IWasBornToWin’s picture

I just tried the latest modules and it's doing the same, it increases (some) text in the middle only. It doesn't increase any text in any of the blocks on either side nor does it increase text in some areas in the middle, ie; it doesn't increase content shown on front page teasers from forums. I used "body" for my id.

attheshow’s picture

Interesting, it's working on my test site when I use Pixture Reloaded and the dev version of Text Resize. Which browser version are you using?

IWasBornToWin’s picture

I'm using IE7 and Firefox 3.0.6 I added it to the footer section of my site and changed permissions for all users. You can go look at it if you want - IWasBornToWin.com

Thanks

attheshow’s picture

I took a look at your site. You're still not using the development version of the module. Looks like you still have version 1.2 installed. Please install the development version of the module and give it a shot.

IWasBornToWin’s picture

I was finally able to find the dev module. Interestingly enough, it doesn't show up when "text-resize" mod is listed with other mods like here ; http://drupal.org/project/modules?solrsort=title_sort%20asc&text=text%20.... You have to actually click and go to the individual page here; http://drupal.org/project/text_resize. So that threw me off a bit, besides I was blonde before I became bald :)

Ok, the new module works much better. you can look at if if you want. How do I get it to NOt increase the superfish menu? I would have thought that would have been above the body? It's still not increasing the body content of teasers on home page from forum nodes. Nor does it increase the testimonials and latest comments blocks. both are from the "views" module, one is default(testimonials) and the other I created.

This module does much better than the other one, I appreciate it!

Thanks for your prompt reponses.

Knock'em alive!
James
IWasBornToWin.com

attheshow’s picture

Yeah, it looks like the listing page you were looking at on drupal.org doesn't show development releases for everything.

attheshow’s picture

You're basically asking a question about CSS here. CSS specificity rules determine what takes place in your theme. For example, take your <h2> headers in your layout such as "Now Available". Because your stylesheet for your theme specifies that the size for any <h2> header is 12 pixels, and you've specified that the <body> is what's being resized by the Text Resize module, since the <h2> tag is more specific than <body>, the <h2> text stays at 12 pixels. I recommend either switching your stylesheet to use ems which can be more easily resized than pixels, or choosing a more specific <div> in your body to use. The full <body> tag is probably not a good idea in most situations and it's definitely not working for this site.

scarer’s picture

you can use javascript to have text re-size links too. i have implemented this solution on a few different skins i've developed for drupal 5 and 6. if you want some clues on how to do this ask me :)

the javascript basically just calls a function that resets the css for the page so you can separate, or not include sections in accordance with the css.

IWasBornToWin’s picture

Is it as simple as going into my stylee.css and changing the fontm in

from px to css type font?

scarer’s picture

no. if you want a link that dynamically resizes everything when it's clicked on you'll need some javascript.

Status: Fixed » Closed (fixed)

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