I can imagine that it is easy to set up drop-down menu on danland theme with drupal 7.0, but I just can make it work!

Please help me!

I placed items in superfish menu: Parent1, Parent2,...And it is visible.
In Parent1 I placed child item1, child item2, child item3.
For Parent1 I checked "Show it expanded", for weight 1. For child item1 weight -1, for child item2 -2.
For child item1 I put Path: http://danland/childitem1.html, and so on for other child items, at that place there is a page childitem1.html. When I place mouse at Parent1 I don't see the drop down menu.

Then I read "Setup the Superfish menu on Danland 7.x " from http://www.danpros.com/2011/02/setup-superfish-menu-on-danland-7x.html?s... and guess what, still not working ?

I did disable my menu, and added block for it, and also have checked "Show as expanded", but then there is only empty menu, without any Parent items.

I really have to do it asap, but have major problems, although it should work. Please point where I make mistake and how ?I make it work..

Thank You in advance!

Regards, Nicole

CommentFileSizeAuthor
#1 local_site.jpeg67.55 KBDeepika.chavan

Comments

Deepika.chavan’s picture

StatusFileSize
new67.55 KB

Hi,
I tried the same thing on my local site. I modified the code in page.tpl.php :
Now it looks like following code :

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

And Added following css code in local.css file :

/*to remove the blue colored image*/
#rounded-menu-left, #menu, #rounded-menu-right { 
  background: none;
}

/*to hide rounded menu images*/
#rounded-menu-left, #rounded-menu-right { 
  display: none;
}

/*to set the backgound color for superfish menu bar*/
#superfish {  
  background:#095CB1 none repeat scroll 0 0;
  float:none;
  padding-bottom:1px;
}

#superfish ul { 
  margin-top: 0;
}

Please clear cached data. Check the attachment.
Note: I enabled the superfish menu block under 'Superfish menu' region. Here we have set background for #menu 'none' so that we can use different color for menu bar(this is when superfish menu block is enabled). But If you disable the superfish menu block then it will show you main menus(primary links) and you will have to remove '#menu' from following css code

/*to remove the blue colored image*/
#rounded-menu-left, #menu, #rounded-menu-right { 
  background: none;
}

HTH !!

Rgrds,
Deepika Chavan.

nicole_green’s picture

Hi Deepika Chavan!

Thank You very much for Your answer. It is from great help! But it seems I didn't do everything right, because it is not working properly... :(
I placed the code. I wonder is there a possibility that a little arrow is not visible ?

On the home page I cannot access drop down menu, only when I click on item which has subitems.
Also, at that new page,menu is visible only when I place mouse on it.
I enabled the superfish menu block under "Superfish menu" and disabled main menu.

Do You have some suggestion what could be wrong ?

Thanks!

Regards, Nicole

Deepika.chavan’s picture

Hi,
To get that little arrow go to the Administration » Structure » Blocks. Configure the block(superfish block). Under 'SUPERFISH SETTINGS' there is a checkbox saying 'Auto-arrows', select that.
When we hover the parent menu it shows the list of sub-menus this is default behavior. If this not the case then Can you please explain with screenshot?

Rgrds,
Deepika Chavan.

nicole_green’s picture

Hi!

I have main menu for superfish menu region enabled. Maybe there is a problem ?

I can see that what you say, I have only configure, and there is not option 'Auto-arrows'...
Any suggestions ?

Thanks!

kenheim’s picture

I'm with nicole_green, the is no 'SUPERFISH SETTINGS' in the block configure form. Are you using Danland 7.x-1.0?
I have my main menu block placed in my superfish region, and I do get a drop down, but only after the parent item is activated. So once I click on the parent menu item and that becomes the active-trail, the arrow appears and the children present on hover. But there are no arrows or hover functionality for the parent items that are not active.

kenheim’s picture

OK, I found my issue with the active menu. I had not checked the "Show as expanded" for the parent items, I had only checked it for the children. Now everything is working as it should.

But still, there is no 'SUPERFISH SETTINGS' in the block configure form. Also, I never made any changes to superfish menu region code in the page.tpl.php.

nicole_green’s picture

Hi Kenheim,

Thank You for posting!
I didn't use above suggested css code, and my menu looks normal with drop down menu, except at home page. E.g. When I log in from home page I can see the arrows and drop down menu.
Are there any ideas how to make this work for a home page as well ?

Thank You!

kenheim’s picture

Nicole,

I not sure that I understand your question. Are you saying that all your parent menu items show the dropdown, but your home menu item doesn't? If you want the Home menu item to show a dropdown then you will need to go to structure/menus/main menu and create the child links you want under the Home parent, make sure all are checked "show as expanded", and you should be good to go.

Ken

nicole_green’s picture

Hi Ken,

I didn't explain good.

When I first time open the website (I am not logged in) I see menu without arrows and drop down menu is not showing when I place mouse on parent item. When I login, I am getting the same first page but this time with arrows and drop down menu. It means when unregistered user enter first time website, see only menu, without possiblity to see child items, but when clicked on any item in menu (for which I know has a child, or without) I am redirected on that page(from menu item chose), and first time then user can see that there is a drop-down menu as well.

I just was wandering what should I do to have a drop down menu on the first page showed when website is opened.

kenheim’s picture

Try clearing cache.

Deepika.chavan’s picture

Hi Nicole,
here you have said that you have main menu for superfish menu region enabled. but the 'SUPERFISH SETTINGS' is not there for main menu block it is there for 'Superfish (Superfish)' blcok.
So configure the 'Superfish (Superfish)' block and enable the 'Auto-arrows' option to get the little arrow.
Rgrds,

Deepika chavan.

danpros’s picture

Status: Active » Fixed

Hi,

I think this problem already solved.

Dan

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