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

johnalbin’s picture

Status: Active » Fixed

You 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.

Status: Fixed » Closed (fixed)

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