I am working on a site for a client, where he purchased a theme, and the theme won't work with this module. I have tried editing the CSS file for the theme to change the way the font sizes are set (It was set by px originally, I changed it all to %'s) however I've had no luck getting this module to work with the theme.

Is there a guide somewhere that tells me what I need to do to make the theme compatible with this module?

CommentFileSizeAuthor
#2 style.txt35.59 KBensignavenger

Comments

CZ’s picture

Status: Active » Postponed (maintainer needs more info)

Hello James Lee Vann

Please post some more information about your browser name and version, your cookie handling (are cookies allowed?), JavaScript handling and your theme example the "body" element style in CSS file(s) example in "sites/all/themes/themename/style.css":

body {
  font-size: ...
}
ensignavenger’s picture

StatusFileSize
new35.59 KB

I have tried it in both Firefox 3.5.8 and IE 8. I am fairly certain it is my theme, as it works fine with Garland and other Drupal themes. Cookies are allowed. Javascript is allowed.

My styles.css file is attached. (Changed to .txt because it wouldn't let me upload a .CSS file) I have tried different versions of it, using % for font sizes and so forth, but nothing has worked. This version is the one that came with the theme. Thanks, I really appreciate your help! I'll try to respond back more timely to the next reply!

CZ’s picture

Hello James Lee Vann

You have to change the code on line 7 to:

/* CSS Document */
* { margin:0; padding:0;}

body#body{ 
  background:url(images/bg.gif) top repeat-x;
  font-family:Arial, Helvetica, sans-serif;

  color:#4e4e4e;
  padding-bottom:33px;
}

And define under "admin/settings/textsize#edit-textsize-normal" the "Normal Text Size" to "75%" (12px are 0.75em or 75%).

ensignavenger’s picture

Okay, I removed line 7, as shown above. I also made the admin changes.

It still isn't working. Firebug is showing a javascript error in jquery, but I'm not very familiar with javascript. It works fine with the Garland theme.

Here is the site I am working on: http://www.localhearing.com/

Thank you!

CZ’s picture

The JavaScrip error generate the "Text Resize" module. Please disable or delete this module.
Check the permission of the Text Size module.

ensignavenger’s picture

I have uninstalled the text resize module and made sure that all users have permission to access the Text Size module. Still no change.

CZ’s picture

Problem 1: The theme have still "font-size" values in pixel "px" (see "Requirements"). For example ".content { font-size: 12px;}" in style.css.
Problem 2: The jquery-1.3.2.min.js file in your theme ("sites/localhearing.com/themes/theme345/js/jquery-1.3.2.min.js") could have a problem or is incompatible with the jQuery Cookie Plugin (jquery.cookie.min.js) file. Is this file (jquery-1.3.2.min.js, a jQuery JavaScript Library) required?

Another solution for problem 1: You can define a div element on: "admin/settings/textsize#edit-textsize-element" and a class ".content" on "admin/settings/textsize#edit-textsize-element-class-wrapper" and check "Overwrite text size in templates" on: "admin/settings/textsize#edit-textsize-important".

Another solution for problem 2: You can disable JavaScript on: "admin/settings/textsize#edit-textsize-javascript".

ensignavenger’s picture

I don't think that javascript is necessary any longer, so I'll remove it. Also, you mentioned the "requirements" section above- I couldn't find it in the read me or in the module folder. I finally found it in the Drupal Help system- you might consider adding that to the Readme file, as that is exactly what I've been looking for. I'll apply your suggestions tomorrow and let you know how it turns out! Thanks!

baff’s picture

Activated Module breaks theming in Internet Exlorer 6 and 8

ensignavenger’s picture

Thanks! Looks like that got everything working.

@baff- not quite sure what your referring to- I know there is an isue with the theme in IE8, where there is a gap between the banner element and the Custom element, I am also trying to fix that- is that what your telling me about? Do you know what is causing that?

ensignavenger’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Everything is working now. Closing the issue. Thanks.