Currently the secondary menu appears in the footer region/block.

How can I (in detail) put this secondary menu in the line just below the main menu?
The secondary menu should be left justified or even better adjusted centered below the refering main menu item?

At first it would help to know how to rewrite the PHP code.

On the long view an option in Danland Theme would be helpful

Furthermore I am think about to introduce a third menu level.
This should obviously appear just below the secondary menu line.
How would the PHP code look like for that?

Peter

Comments

danpros’s picture

Status: Active » Fixed

Hi,

Move below code

		<?php if($secondary_menu) : ?>
			<div id="subnav-wrapper">
				<?php print theme('links__system_secondary_menu', array('links' => $secondary_menu, 'attributes' => array('id' => 'subnav', 'class' => array('links', 'clearfix')))); ?>
			</div> <!-- end secondary menu -->
		<?php endif; ?>

and its should become like this

	<div id="menu">
		<div id="rounded-menu-left"></div>
			<?php if ($main_menu || $page['superfish_menu']): ?>
				<div id="<?php print $main_menu ? 'nav' : 'superfish' ; ?>">
					<?php 
						if ($main_menu) {
							print theme('links__system_main_menu', array('links' => $main_menu));
						}
						elseif (!empty($page['superfish_menu'])) {
							print render ($page['superfish_menu']);
						} 
					?>
				</div> <!-- end primary / superfish -->
			<?php endif; ?>
		<div id="rounded-menu-right"></div>
	</div> <!-- end menu -->

		<?php if($secondary_menu) : ?>
			<div id="subnav-wrapper">
				<?php print theme('links__system_secondary_menu', array('links' => $secondary_menu, 'attributes' => array('id' => 'subnav', 'class' => array('links', 'clearfix')))); ?>
			</div> <!-- end secondary menu -->
		<?php endif; ?>

Ther rest is CSS. Use Firebug to help you modify the CSS.

Dan

Status: Fixed » Closed (fixed)

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