Hi,

I have tried everything I can think of to make this module work. I have edited the .info file as described. This successfully adds a color uption to admin/build/themes/whatever, however, the css that I put in designkit.tpl.php does nothing. Even something simple like:

body { background: #F00; }

has absolutely zero effect on the page. I've put the designkit.tpl.php in every folder; it just doesn't get picked up. I don't get it. Please help.

Comments

RyanJLind’s picture

Status: Active » Closed (fixed)

Nevermind. Had to remove the pass by references (replace &$ with $ in designkit.module.)

entrigan’s picture

can you please explain further? I am unable to get designkit.tpl.php to work as well, but I do not see where pass by references will affect this.

entrigan’s picture

Status: Closed (fixed) » Active

To clarify the problem: designkit is enabled and at least partially working. It adds the designkit class to the body, however the designkit.tpl.php is not getting added.

entrigan’s picture

Status: Active » Fixed

after looking into it I discovered the issue was with using the ninesixty base theme which reorders/resets the css in a way that seems to loose the designkit styles. For now I have worked around this by including the following code in mytheme_preprocess_page()\

 $info = designkit_get_info();
  $color = !empty($info['designkit']['color']) ? variable_get('designkit_color', array()) : array();
  $image = !empty($info['designkit']['image']) ? variable_get('designkit_image', array()) : array();
  $styles = theme('designkit', $color, $image);
  $vars['styles'] .= $styles;

Status: Fixed » Closed (fixed)

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