Closed (fixed)
Project:
Text Resize
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
22 Feb 2009 at 16:48 UTC
Updated:
15 Mar 2009 at 23:50 UTC
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
Comment #1
attheshow commentedDear 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?
Comment #2
attheshow commentedOh, 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.
Comment #3
IWasBornToWin commentedI 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?
Comment #4
attheshow commentedToday'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.
Comment #5
attheshow commentedDear IWasBornToWin,
Did you get a chance to check out the latest development snapshot once it was posted?
Comment #6
IWasBornToWin commentedI will try to test it out today. Thanks!
Comment #7
IWasBornToWin commentedNo 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?
Comment #8
IWasBornToWin commentedI 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.
Comment #9
attheshow commentedInteresting, 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?
Comment #10
IWasBornToWin commentedI'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
Comment #11
attheshow commentedI 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.
Comment #12
IWasBornToWin commentedI 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
Comment #13
attheshow commentedYeah, it looks like the listing page you were looking at on drupal.org doesn't show development releases for everything.
Comment #14
attheshow commentedYou'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.
Comment #15
scarer commentedyou 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.
Comment #16
IWasBornToWin commentedIs it as simple as going into my stylee.css and changing the fontm in
from px to css type font?
Comment #17
scarer commentedno. if you want a link that dynamically resizes everything when it's clicked on you'll need some javascript.