Community & Support

keep primary link area visible when theres no links

i have an area at the top of my page for primary links, when theres no links there the area dissapears. I would like to keep the area there when I have no links on the page.

this is whats in my page.tpl if its needed

      <div id="header-primary-menu-wrapper" class="header-primary-menu-wrapper full-width">
        <div id="header-primary-menu" class="header-primary-menu row <?php print $grid_width; ?>">
          <div id="header-primary-menu-inner" class="header-primary-menu-inner inner clearfix">
            <?php print theme('grid_block', $primary_links_tree, 'primary-menu'); ?>
          </div><!-- /header-primary-menu-inner -->
        </div><!-- /header-primary-menu -->
      </div><!-- /header-primary-menu-wrapper -->

thanks for any help.

Comments

Visible header

Can your header be a fixed height? If so, add this to your style.css:

#header-primary-menu-inner {
  height:20px;
}

Replace 20px with whatever you want the height to be.

Ferlito/van der Wyk | Drupal web design & development

nobody click here