I just installed Bootstrap 3, but the main menu doesn't look right. What have I done wrong? I would like to use fixed to top nav bar. Thanks.

Comments

lollylollylollypop’s picture

Priority: Critical » Normal
andregriffin’s picture

Seems as though you're trying to render your main menu via block module, rather than "admin/structure/menu/manage/main-menu". You should use default main-menu rendering and remove your block from the navigation region.

lollylollylollypop’s picture

It worked. Thank you so much. :)

andregriffin’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

newindrupal’s picture

Had the same issue - removed all blocks from Navigation region, but Main Menu is shown only after clearing the cache and only on current page. If i go to any other - again no menu, just logo..

pdesai’s picture

For anyone that wants to use a block in the navigation as a menu:

function YOURTHEME_preprocess_block(&$vars) {
	$block = $vars['block'];
	if ($block->region == 'navigation' && $block->module == 'menu') {
		$vars['content'] = str_replace('class="menu', 'class="menu navbar-nav', $vars['content']);
	}
}