Closed (fixed)
Project:
Zen
Version:
7.x-3.1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Jan 2012 at 18:07 UTC
Updated:
28 Feb 2012 at 11:40 UTC
Hi there. Using the Zen theme for Drupal 7, the height of my "nav bar" changes depending on content but it should be set to a fixed height in layout-fixed.css or layout-liquid.css. The only solution I have come up with so far is to create another theme and using the themekey module have it show a different theme for specific content. As this solution seems messy and complicated does anyone know of better, easier solutions? Thanks!
Comments
Comment #1
johnalbinYou could add a body class from within hook_preprocess_html(). http://api.drupal.org/api/drupal/modules%21system%21theme.api.php/functi...
And then vary the navigation's CSS based on the existence of your custom body classes.
You can look at Zen's zen_preprocess_html() in template.php for an example of adding body classes.