Skip to main content

Drupal Themes

Our feature packed Drupal themes combine beautiful design with over 70 optional settings, our easy to use administration theme and all backed by our no fuss money back guarantee.

Drupal Design

Blow away the competition with our full service graphic design services. We focus on audience demands & brand identity to set the tone of your internet business strategies.

Drupal Designers and Themers Community

Join the first crowd sourced premium Drupal theme service. Become a rockstar designer or themer, share the profits and get exposure to a half million Drupal users.

Add Superfish Drop Menus to Any Theme, Easily

Post to Twitter

How to add a Superfish drop menu to Genesis or Adaptivetheme is one of the most common questions I get. Believe when I say I get emails from well intentioned Drupal users on a weekly basis asking me this. So now, please stop emailing me, I relent, heres how its done.

1. Get the Files

First, download the archive attached to this page. Unzip it and place in your theme.

2. Create A New Region

Open up your themes info file and add this to the regions list. If there isn’t one you’ll have to add all the Drupal 6 default regions as well (don’t ask me why), as in the following:

regions[header] = Header Blocks
regions[content] = Main Content
regions[left] = Sidebar Left
regions[right] = Sidebar Right
regions[footer] = Footer
regions[superfish_menu] = Superfish Menu

Then add the new region to your themes page.tpl.php, with a wrapper DIV with the CSS id #superfish.

<?php if ($superfish_menu): ?>
  <div id="superfish"><?php print $superfish_menu; ?></div>
<?php endif; ?>

3. Load the JS and CSS

Back to your themes info file now, add the following:

;Superfish Stuff

stylesheets[all][] = sf/css/superfish.css
stylesheets[all][] = sf/css/theme.css
scripts[]          = sf/js/superfish.js

One more coding step and we’re there - add this snippet to the head of your page.tpl.php file:

<script type="text/javascript">
  $(document).ready(function() {
    $("#superfish ul.menu").superfish();
  });
</script>

Right on, now you need to clear the theme registry (go to Performance settings and click Clear Cache Data so the new info file stuff is loaded into the theme registry).

4. Build a Menu and Set it up

This bit is the easy bit - build a new Drupal menu. Set the parent items to be “expanded” in your menu’s configuration screen. See the screenshot below where I’m using the Navigation menu for a test. Then go to the blocks page and add the menu block to the superfish_menu region.

5. Style It

sf/css/theme.css has the colors and is the one you’ll want to be editing. Good luck!

AttachmentSize
sf.zip5.6 KB

Comments

#1 Hi, thanks for the

Hi, thanks for the tutorial!
I think it would be helpful to set up the admin interface. :)

#2 Thanks!

Hi Jeff,
Thanks a 1000 times!
Gone give this a go later on the day. Hope it will make my day :) :)

Thanks again!
Greetings,
 Pat.

#3 Hi Jeff, Works like a

Hi Jeff,
Works like a charm !

Thanks mate!
 Pat.

#4 Very good tutorial. Waiting Unpublished

Very good tutorial.

Waiting for some other interesting tutorial.

#5 Thanks for this short but

Thanks for this short but very useful tutorial.

#6 Very easy to follow and very Unpublished

Very easy to follow and very clear on the steps.
Thank you very much for this awesome quick tutorial about the dropdown menu feature!

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <h2> <h3> <h4> <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Adds typographic refinements.

More information about formatting options