I love this theme and its css dropdown menu. However, I have another custom menu module, which allows me to put my own html and other content into the dropdowns. I'm trying to replace your menu with this one. Here is what I've tried so far.

The template.php file was nearly empty... No variables. Just a page slideshow javascript. So now that I tried to preprocess my megamenu, it looks like this...



/**
 * Add javascript files for front-page jquery slideshow.
 */
if (drupal_is_front_page()) {
drupal_add_js(drupal_get_path('theme', 'bluemasters') . '/js/bluemasters.js');
}
/**
 * Use Mega_menu.
*/
function bluemasters_preprocess_page(&$vars) {
$vars['main_menu_links'] = theme('megamenu_main_menu');
}

And my page.tpl.php looks like this. (I think this is the relevant code)

I have the custom menu module installed. But Its not working. What am I doing wrong?

Comments

skounis’s picture

Assigned: malbone » gtsopour
Issue tags: +Bluemasters theme, +bluemasters

Hello malbone

Try to replace this code as you already mentioned, at page.tpl.php and page--front.tpl.php

<?php
$menu_name = variable_get('menu_main_links_source', 'main-menu');
$main_menu_tree = menu_tree($menu_name);
print drupal_render($main_menu_tree);
?>

with the default main-menu printing

<?php print theme('links__system_main_menu', array(
'links' => $main_menu,
'attributes' => array(
'class' => array('links', 'main-menu', 'menu'),
),
'heading' => array(
'text' => t('Main menu'),
'level' => 'h2',
'class' => array('element-invisible'),
),
)); ?>
gtsopour’s picture

Hello malbone again

I tried to reply to your support request sent to support@morethanthemes.com, but i would like to inform you that i received the message "Delivery to the following recipient failed permanently: michael@malbone.net".

Thanks
/George

gtsopour’s picture

Issue summary: View changes

fixed typo