tog22 / eahub

EA Hub
7 stars 1 forks source link

Dropdown menus #6

Open tog22 opened 9 years ago

peterhurford commented 9 years ago

@tog22 Can you elaborate what you mean?

tog22 commented 9 years ago

I mean making the top menu bar have dropdown menus. This essentially involves:

When we have someone for this I can give them more detailed instructions.

arichard4 commented 9 years ago

Can I get the more detailed instructions?

peterhurford commented 9 years ago

@tog22 ^

tog22 commented 9 years ago

Sure thing, thanks for self-assigning @arichard4 :

"Dragging "Superfish 1 (Superfish)" to the appropriate region ("Navigation") at http://effectivealtruismhub.com/admin/structure/block (or rather on a dev site first)"

...for you to make things easy. However you may need to tweak the settings of the (renamed) block at http://diffdocroot.effectivealtruismhub.com/admin/structure/block/manage/superfish/1/configure

Tagging @cdc482 FYI and to help and coordinate with Alex, as he's also working on the dev site.

tog22 commented 9 years ago

@arichard4 says:

At least part of the problem lies in the javascript- superfish.js relies of JQuery.browser, which was eliminated in JQ 1.9.1

https://www.drupal.org/project/superfish says:

For jQuery 1.9 and above you should either manually include the jQuery $.Browser plugin, via your theme .info file for example, or use the latest development release with the master branch of the Superfish library, which checks $.browser before using it. (Note the superfish.js for Drupal 8 won't include the IE6\7 hack hence no $.browser trouble!)

I'd recommend trying to edit the theme .info file - dev releases of Drupal modules are often fine, but this seems safe. Documentation is at https://www.drupal.org/documentation/theme . We're using Drupal 8.

tog22 commented 9 years ago

I just added the theme in commit https://github.com/tog22/eahub/commit/66dc095352e79d80de75c7124f110272756608cf . It's at https://github.com/tog22/eahub/tree/master/sites/effectivealtruismhub.com/themes/corporateclean