I was wondering if it was possible to do this: http://users.tpg.com.au/j_birch/plugins/superfish/#sample4 with pixture's superfish menu. If so, how would I go about doing that?
Any help with this would be appreciated.
Thanks,
Eric
I was wondering if it was possible to do this: http://users.tpg.com.au/j_birch/plugins/superfish/#sample4 with pixture's superfish menu. If so, how would I go about doing that?
Any help with this would be appreciated.
Thanks,
Eric
Comments
Comment #1
ridolfidesigns commentedAnyone have an answer to this. I have been trying to figure it out with no luck.
Comment #2
bobgeier commentedSubscribing. Would love to figure this out as well for several themes.
Comment #3
ridolfidesigns commentedI did come up with something that works but it requires the use of nice menus as well. Here is what I did:
First, in pixture_reloaded's page.tpl.php there is code that looks like this:
I then changed
$('#superfish-inner ul')to$('ul.sf-menu')After that, I needed to change drupal's .menu class to sf.menu sf-navbar because superfish's documentation states that the parent ul needs to have the class "sf.menu sf-navbar." So I first went into the template.php file to theme drupal's menu class but the problem was that when I changed the ul, it changed it for all of the ul's. That's where nice menus comes in.
Here is the code I added to my template.php file to make everything work the way I needed it to work:
Then I also added this line of code near the bottom where it looks to add additional stylesheets and javascript files:
Of course you have to have all of the necessary files in the theme folder. Because I was using pixture_reloaded, I just used the file structure that was already there. For example: there is a "SF" folder with a subfolder of "CSS", I simply added the superfish-navbar.css file.
That's about it. If anybody has any questions please let me know. Also, if you know how to create the code above that is related to nice menus without using the nice menus module, please let me know. I am not a programmer so I wasn't totally sure how to do it.
Thanks,
Eric
Comment #4
Jeff Burnz commentedI think we can mark this one as fixed.
Comment #6
robfrog commentedi just cant find this code in my page.tpl.php:
$(document).ready(function() { $('#superfish-inner ul').superfish(); });if ((theme_get_setting('pixture_superfish')) && ($superfish)):endif;can you help me ridolfidesigns ?
cheers
rob
Comment #7
maen commentedHello, I'm Marc from germany, I've been coming in touch with drupal for 2 weeks.
My Goal: Getting a horizontal menu in nav-bar style in pixture reloaded. Unfortunaletly, I got the same problem as robfrog...
The code
is not in page.
Also, I Don't understand this part of the explanation:
My question:
where is this .menu class and how to change it???
Has someone the pity to help a strict beginner please?????
Comment #8
Jeff Burnz commented@mean - this thread is primarily about getting superfish working in OTHER themes, in Pixture Reloaded all you need to do is make a menu and place the block in the Superfish region (and disable primary links in your theme settings), thats all there is to it, its all automatic.