Hello there,
I was wondering if somebody could help me get the drop downs working w/ the primary links. I have enabled the parent using the primary links menu, and while that nests the child into its own list, its still visible in the primary links. I see on one of the demo sites that the main outer list has the class "sf-menu" applied to it. When i play with things in firebug and add that class, i see that my subelements are hidden, but they don't display when the parent has been hovered. I am not sure how to get that class applied to the menu even if that were to fix my problems. Can anybody help me out with how to get this working. I would really love to use dropdowns with this theme. Currently the site i'm trying to implement this on is http://www.niftynostalgia.com and the "parts" link contains one subelement called "engine".

Brian

Comments

jeremycaldwell’s picture

After a quick look at your site it seems your "acquia-prosper-style.css" file is different than the original. Try downloading the latest release of the theme again and add that to your site to see if it fixes your primary menu dropdown. Through Firebug I removed the styling in the "acquia-prosper-style.css" file and the dropdown works so that is my guess.

bdawg8569’s picture

Thanks for your reply. I tried your suggestion, but I still don't have them working. I did add one thing in the file you mentioned. I added

#primary-menu
{
	overflow:hidden;	
}

because i was getting dots appearing above the links. I have the original file back in place now and the dots are back. The superfish menu still doesn't work however. Anything else to try?

bdawg8569’s picture

I see now that when i add the sf-menu in firebug that it behaves correctly. How am i supposed to add that class to the menu? I don't see any kind of theme setting to enable superfish. What do i need to do?

bdawg8569’s picture

I found the block of code here in the template.php file for the prosper core

/ Generate menu tree from primary links, add Superfish class
  $vars['primary_links_tree'] = '';
  if ($vars['primary_links']) {
    $primary_tree = menu_tree(variable_get('menu_primary_links_source', 'primary-links'));
    $vars['primary_links_tree'] = preg_replace('/^<ul class="menu/i', '<ul class="menu sf-menu', $primary_tree, 1);
	print_r($vars['primary_links_tree']);
  }

I just don't understand why mine isn't getting replaced.

bdawg8569’s picture

I got it to work by taking out the ^ specifying it was the beginning. I don't know if this is correct, but its working for me. The dropdowns have the page titles showing thru them but that can probably be fixed.

sociotech’s picture

bpwilliams,

I've run into this in another instance where a module (in this case, Theme Developer) was inserting tags in front of the menu tree, preventing the match and the addition of the Superfish class. Removing the beginning string match character ('^') fixed it in that case.

As a result, I'm going to be making the same change to the next version of Fusion Core.

Thanks very much for your input!

sociotech’s picture

Status: Active » Fixed

This issue should now be fixed in the latest beta 4 release.

Status: Fixed » Closed (fixed)

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