Search code examples
phpdrupaldrupal-7drupal-modulesdrupal-theming

Install superfish menu in drupal 7


I need to use superfish in my site built upon Drupal 7, I installed libraries and superfish modules and enabled them. Also I installed superfish library and everything went OK.

Also, I have added a new region named "superfish_menu" into mytheme.info.

Then go to blocks and assigned superfish 1 block to superfish_menu region then configure the block to assigned main menu in this block.

then go to page.tpl.php and put this code

 <div style="border:3px solid red">
   <?php print render($page['superfish_menu']); ?>
 </div> 

Finally, I cleared the cache. but unfortunately I can not see the superfish menu.

What I missed to do?


Solution

  • Make sure that parent menu items are Marked as expanded. You can find that in menu item edit page, just make sure this checkbox is checked.

    Also check if you have downloaded the superFish library : https://github.com/mehrpadin/Superfish-for-Drupal/zipball/master