WordPress Dropdown Menu Plugin
Note: This plugin has been superceded by the ‘Multi-level Navigation Plugin‘.
This plugin generates the code necessary to create a Son of Suckerfish WordPress dropdown menu.
Download
The plugin is available for download here … Suckerfish WordPress Plugin
Installation
Add the following code wherever you want the dropdown to appear in your theme (usually header.php) and activate the plugin in your admin panel.
This code adds a button for your home page and dropdowns for your Pages, Archives, Categories and Blogroll.
<?php if (function_exists('suckerfish')) {suckerfish();} ?>
Customisation
You can modify the look of your dropdown by using our new Online Suckerfish Dropdown CSS Generator. The generator has been designed with this plugin in mind, so just copy and paste the CSS code from the generator to the plugins options page.
Credits
Thanks to Patrick Griffiths and Dan Webb for their article which we used as a model for the CSS used in this plugin. And thanks to Miriam Schwab for writing the blog post which motivated us to create it.
Support
For support, please visit the dropdown menus board in our support forum. Please note that many new features are available in the ‘Multi-level Navigation Plugin‘ so you should check that out before asking any questions about this plugin.
241 Responses to “WordPress Dropdown Menu Plugin”
Chris on: January 14th, 2008 at 10:29 am
Hey Ryan,
I’d really love a nicer-looking version of this plugin. Drop-downs are pretty cool, so keep working on it an it could end up being a really popular gizmo!
str3ss on: January 16th, 2008 at 1:52 am
Hey Ryan ::
This look interesting!
Like the idea of SuckerFish + WordPress, good stuff!
I took a look at your demo in Safari 3 (Win/Mac) and the nav positioning is off about 20px to the left.
Can’t wait to try this on some of my WP installs. This is a fantastic idea, thanks for doing the dev!
Ryan on: January 19th, 2008 at 8:38 am
Good to see you guys like the concept. I’ve now updated it with a much better looking design and it works in all browsers I’ve tested on so far (IE6, IE7, FF2, Safari3, Opera9).
Driving my Inner Geek Insane | Psychicgeek on: January 21st, 2008 at 10:22 pm
[...] down dyamically populated navigation bar, courtesy of a WordPress Plugin which you can read about here This page only shows the simple code for your pages, but I wanted to have my archives and [...]
witchypoo on: January 21st, 2008 at 11:55 pm
I would love to have a home link on my navigation bar. Love the plugin!
Ryan on: January 22nd, 2008 at 1:41 am
Glad to hear you like the plugin
I’ll provide an example of how to add a home page button on the demo page tonight.
EDIT: New version has this functionality built in via the function suckerfish().
Ryan on: January 22nd, 2008 at 5:33 am
I’ve uploaded version 1.03 of the plugin. The new version essentially functions the same, but I’ve added a simplified method for displaying the various menu options. Hopefully this will make things a little easier for beginner WordPress’ers.
EDIT: We’re now up to Version 1.04 as I had to do a bunch of modifications under the skin for submission to the Official WordPress Plugins directory
witchypoo on: January 22nd, 2008 at 1:54 pm
Because the navbar uses the entire width of the layout, and Categories is the last item on it, the sub sub menus fly out to the right, so are unreadable. I think I can fix that in the css, but you may want to consider it as you have for including a home link. Again, I fixed that myself, but some folks are scared to mess with CSS.
I like the one line of code, I might just swap it out with the code I put in yesterday, should I de-activate the plugin first?
BG on: January 22nd, 2008 at 8:35 pm
Hi, wondering where exactly in the header.php file one should place your code in?
Ryan on: January 22nd, 2008 at 8:53 pm
witchypoo - I hadn’t thought of the sub menus blowing out the side of the screen like that. The easiest solution to get around that is to decrease the font size in the CSS a notch or two. To use the simplified template code, you need to download the new version of the plugin and replace you existing files with it. You don’t need to deactivate and reactivate it, the changes will be automatic. Your old code will still work with the new plugin too, so if you change your template code after installing the new plugin you won’t have any downtime. But if you use the new code now your WordPress install will probably report an error I assume (I haven’t tried it).
BG - Where you put the code is entirely up to you. It depends on where exactly in your blog you want it to appear. Usually you would place it towards the end of the file. If you would like specific help with your theme, drop me a line via my contact page and I’ll help you from there.
BG on: January 22nd, 2008 at 9:25 pm
If I want it to appear in the header horizontally in the header of my kubrick theme. Where in the header.php file should I place it. What codes near it should I look for.
Ryan on: January 22nd, 2008 at 11:17 pm
Edit: I tested this tonight and found you need to clear your floats or the search box will blow out the side of the page. I’ve edited the code below accordingly.
The Kubrick theme is slightly annoying this regard as it doesn’t have a fixed width box to plonk your content in, or at least it does, but that box includes the graphical borders which you won’t want your menu obscuring. But you can get around this by using a DIV tag with margins to pull the edges of the menu in as follows:
Below this section of code in your header.php file:
<div id="page"><div id="header">
<div id="headerimg">
<h1><a href="http://ryanhellyer.net/test/wordpress1/">Ryan’s test blog</a></h1>
<div class="description">This is Ryan’s blog for testing out WordPress stuff</div>
</div>
</div>
<hr />
Place the following code:
<div style="margin:0 25px;"><?php suckerfish(); ?>
</div>
<div style="clear:both;"></div>
That should place the menu nicely underneath the main header for you. I haven’t test it though, so if it doesn’t look correct then let me know.
ITbananas.com » on: January 23rd, 2008 at 2:25 pm
[...] Suckerfish: Sons of Suckerfish - JQuery (…) … : Ryan’s Suckerfish. [...]
Istvan on: January 24th, 2008 at 3:15 am
Nice plugin, I will surely try it…is possible to display only categories with sub-categories as drop down?
Thanks
Ryan on: January 24th, 2008 at 9:35 am
Yes that is possible. It’s not one of the default functions, but it’s quite easy to do. I am busy right now, but I’ll leave a comment later on tonight with instructions on how to do it and will include this functionality in the next version for you.
Ryan on: January 24th, 2008 at 7:30 pm
Istvan, to add a list of categories with your sub-categories in a dropdown, use the following code:
<ul id="suckerfishnav"><?php wp_list_categories('title_li='); ?>
</ul>
There’s now a demo of this on the demo page
Istvan on: January 25th, 2008 at 7:46 am
Thanks for the fast reply, I will try it on my local installation.
Theo on: January 25th, 2008 at 10:58 am
Ryan,
I love this plugin - it solves a HUGE problem for me. I’m using the indomagz theme. The old nav bar had this code:
<a href=”">Home
I replaced the code to read this:
But when I do that, the rest of the content on the page disappears! Do you have any idea why this might be happening?
Clarissa on: January 25th, 2008 at 11:04 am
Hey Ryan! Useful, wonderful plug-in, but I haven’t been able to get it to show more than 2 pages at a time. I have about 4 links in a sub-category here. Could it be because they are linked to an outside page?
Ryan on: January 25th, 2008 at 11:19 am
Hi Theo,
WordPress has removed most of your code from your comment unfortunately so I can’t answer your question.
I’ll download the indomagz theme in a few hours and have a look and see if I can sort a solution for you.
Theo on: January 25th, 2008 at 11:52 am
Argh!! Thanks SO much for taking a look - I can email you the code if you’d like as well.
Ryan on: January 25th, 2008 at 12:15 pm
Clarissa - have you hacked the WordPress core by any chance? I see that you have a bunch of doubly closed link tags which may be causing problems. If you are trying to change the look of the dropdown, try altering the CSS file supplied with the plugin (you can write over the existing one).
Which dropdown isn’t functioning correctly? And what code did you use to display it? - note: it’s tricky to display HTML and/or PHP here in the comments without the code disappearing so feel free to provide a link to it instead.
Ryan on: January 25th, 2008 at 2:00 pm
Theo - that was a VERY bizaare problem!
It turns out that your theme behaves rather strangely when floats are added to the layout. You can get around this issue by adding clear:both; to the content-wrapper ID in your themes CSS file as follows:
#content-wrapper {clear:both;padding: 20px 0px 20px 0px; background: #ffffff; overflow:hidden;}You will also likely have some problems associated with your theme specifying styling for unordered lists, so it would pay to specify that styling only for the main content area. You can do this by editing the CSS file in your theme as follows:
#content-wrapper ul{list-style:square;padding:0px; margin:0px 0px 0px 0px;}#content-wrapper ol{padding:0px; margin:0px 0px 0px 10px; }
#content-wrapper li{margin: 0px 0px 0px 20px; padding: 0px 0px 0px 0px;}
If you replace the existing menu bar including it’s border (#navbar) the menu should appear correctly. However if you place it inside the #navbar DIV tag it will probably not display correctly as for some reason they have specified overflow:hidden on that box. To correct this you will need to edit #navbar in your themes CSS file as follows:
#navbar {background: #ECF3F8;font-size: 12px;font-family: Arial, Tahoma, Verdana;color: #444;font-weight: bold;padding: 8px 0px;border: 1px solid #b0c4de; }Other themes should be a lot easier to use the plugin for. This is a particularly tricky one that’s all.
Jonathan Babcock on: January 25th, 2008 at 7:00 pm
Ryan,
I absolutely love the plugin. I have found one minor, though, that I hope you can help with.
First of all, on my site, the suckerfish dropdown doesn’t drop below the original nav bar item. It covers it up, taking away the ability to access the parent page. I’ve tweaked all I can think to tweak in the CSS, but just can’t work it out.
I’ll be grateful for any help you can provide on this.
I’ll leave the menus as-is on my site in case you get a chance to take a look.
Ryan on: January 25th, 2008 at 7:20 pm
Jonathan - I love your implementation
The blue styling looks brilliant. I’ll take a look now and see if I can figure out a solution for you and will post back later.
Ryan on: January 25th, 2008 at 8:36 pm
Jonathan - I’m stumped. When I try to fix one thing in your menu, something else goes wrong
I’ll leave it and come back to it later. Hopefully settling my brain will help bring the solution to the surface
Theo on: January 26th, 2008 at 5:16 am
Ryan-YOU ROCK! Thanks very much! The final implementation will be at http://www.awakenthesleeper.com if you’d like to check it out. I put it in and it works, just need to tweak the look. This solves a huge stumbling point for me with Wordpress. Thanks so much!
Jonathan Babcock on: January 26th, 2008 at 2:29 pm
Ryan,
Thanks for taking a look, and thanks for the compliment on the colors. It does look great and fits right in with the rest of the theme.
RE: the dropdown issue, I’m hoping it isn’t a core theme issue. I don’t like fiddling around too much in the theme’s framework. I also wondered if it might not be something to do with my theme’s CSS, but if it is, it isn’t obvious. I’ve tweaked everything I thought might do the trick.
Anyway, I’m grateful for any time you can spare to look into it.
Ryan on: January 26th, 2008 at 2:52 pm
Hi Jonathan,
I gave up on integrating it with your theme for the mean time and rebuilt the menu to look like yours from scratch. Here’s the final result … http://ryanhellyer.net/test/wordpress1/babcock-style/
Do you mind if I can include this style with the plugin? I plan to add a few more styles over time and this would be a good one for that purpose.
It’s definitely not a core issue with WordPress, but I’m pretty sure it’s a problem related to the way your theme is inadvertently styling things inside the menu. I’ll see if I can get my new version to work with your theme and will post back later on.
Ryan on: January 26th, 2008 at 8:34 pm
Jonathan - I’ve knocked together a very crude mockup of your menu jerry rigged into your theme. I removed a bunch of scripts and other stuff which was taking too long to load while I was testing, but otherwise it’s essentially a replica of your home page.
Mockup »
CSS file »
I changed the #nav and .stopper in your theme to #znav and .zstopper and added some styling to them to fit the menu into the correct position. Another option is to replace those styles with the ones I’ve used for #znav and .zstopper.
Let me know if you have any more problems or if there are any issues with the demo above.
Barbara Ling on: January 27th, 2008 at 12:31 pm
Ryan,
Super super plugin!
I have a question - let’s say that I have two categories with 4 subcategories like so:
Dogs
Basset Hounds
Akitas
Bulldogs
Birds
Parakeets
How can I get a nested Suckerfish dropdown that drops down and then populates to the right?
Thank you for your time,
Barbara
Jonathan Babcock on: January 27th, 2008 at 5:03 pm
Thank you so much for you help and your responsiveness! I added the new styles you provided and the menu is “dropping down” correctly.
It is rendering perfectly in IE, but the vertical alignment seems to be a little off in firefox.
I will goof with it some more, though. I know it’s only a matter a tweak or two to getting it perfect.
Anyway, I really appreciate you taking the time to help me get this working correctly.
As far as the look of the nav bar on my site goes, credit Michael Pollock who designed the theme. I just goofed with the colors of your great plug in to get it to blend in nicely.
Again - great plugin. Looks great, easy to use, and your support has been second to none.
Ryan on: January 27th, 2008 at 6:25 pm
Barbara - I’m not 100% sure what you are asking. Do you want a dropdown which only features categories on the top level and has their sub-categories in the dropdown, with futher nested categories in the flyouts to the right?
If so, then the following code should do the trick:
<ul id="suckerfishnav"><?php wp_list_categories('title_li='); ?></ul>There is a demonstration of this on the demo page near the bottom.
Ryan on: January 27th, 2008 at 6:29 pm
Jonathan - no problem, I’m happy to help
I’m assuming you must be working on it at the moment as it’s more than “a little” out in Firefox at the moment! I also noticed the flyouts are way off in IE7.
As for the plugin being easy to use, that should be improving further in the future too. I’m working on a system to allow you to edit the look of it directly from the admin panel rather than goofing around with CSS files. I’m not sure when it will be ready though.
Cj B on: January 30th, 2008 at 8:59 am
There seems to be a problem in the plugin. If you have your wordpress directory set to something besides your blog address. It does not use the correct URL to access the CSS, etc.
Cj B on: January 30th, 2008 at 9:02 am
Just a quick followup. You should be using “wpurl” on line 40 and 41.
Ryan on: January 30th, 2008 at 11:42 am
Thank you Cj B.
I wondered if that would cause problems, but when I looked up how another plugin coded this, they used the method which I employed. I guess we had it both wrong then.
Thanks for the correction
I’ll upload a new version of the plugin tonight.
Ryan on: January 30th, 2008 at 7:07 pm
Version 1.0.5 is now uploaded. The only change is to fix the bug Cj B pointed out above. The corrections did not apply to lines 40 or 41 though, but much further up in the code.
If the plugin was working fine for you before, then there is no need to upgrade. The bug fix only applies to situations in which your blog address is different from your WordPress address.
Albert on: January 30th, 2008 at 7:10 pm
Great Plugin! Is there a way to highlight the active page?
Ryan on: January 30th, 2008 at 9:55 pm
Albert - thanks.
I haven’t thought about whether it is possible to highlight the active page. It is probably possible if you only want “WordPress Pages” in your dropdown navigation. But I’m not sure about other things like Categories, Archives etc. I’ll have a look into it though and see what I can come up with.
One of the reasons I hadn’t considered this before though, is that you can’t see what the active page is unless it is a page on the top level of your menu or if you open the dropdown. Most dropdowns don’t bother with highlighting the active page for this reason.
joell on: January 30th, 2008 at 11:23 pm
great plug in!!! works like a charm.
just one question…I have several catagories under my blogroll & would like each of the categories to have their own drop down. Right now the plug in just bunches them all together.
for example I have one catagory that is “fav blogs” & another that is “fav websites”. Can I make each have it’s own drop down list?
Albert on: January 31st, 2008 at 8:41 pm
Good point, Ryan. I was indeed referring only to Pages. But now that i think of it, there might be a problem with “child” pages.
Ryan on: February 1st, 2008 at 9:16 am
Joell - that definitely sounds possible. I’ll try to get this going this afternoon and will post a new version of the plugin once/if I get it sorted out.
Ryan on: February 2nd, 2008 at 12:45 am
I’ve found some complications with displaying blog rolls in their categories. I can display the categories in flyouts as requested, but any links which aren’t categorized are not displayed at all
Joell - if you would like a copy of the plugin which works with categories, but features the bug which causes the links not in categories to be invisible, then leave me a message via my contact form and I’ll put something together and email it to you.
rizal on: February 3rd, 2008 at 2:53 pm
hello ryan,
thanks for your suckerfish plugin…it very cool
actually, i tried to make some experimen on theme blog oh blog (bob. i read and follow the instruction given). i put the code ” on the header. but following message appears
“Parse error: syntax error, unexpected ‘>’ in /home/komen/public_html/wp-content/themes/bob/header.php on line 12″
so, kindly you give me some extra tips to ensure your vety cool code be implemented in my site?
thank you..
Ryan on: February 3rd, 2008 at 6:11 pm
Hi Rizal,
I’m glad to hear you like the plugin … although it’s a pity it is not working for you yet.
I downloaded the “Blog Oh Blog” theme, and it seems that header.php is most likely not the file you want to put your menu in. The menu which comes with the theme is stored in a file called menu.php
If you remove all of the code from that file and replace it with the following, it should work … I think, I haven’t tried it myself.
<div id="nav">
<?php suckerfish(); ?>
</div>
This should not give you any parse errors. But it may look a little wonky and if so let me know and I will investigate further.
Rizal on: February 4th, 2008 at 2:07 pm
Hi, Ryan..thanks for your advice
you said that the menu which comes with the theme is stored in a file called menu.php
i’ve recheck all the .php script in “BOB”, and not found where’s that menu.php is located. here i show you what i’ve found in “BOB” php script
404
archieve
archieves
category
comments
footer
functions
header
index
lsidebar
page
rsidebar
search
searchform
sidebar
single
sitemaps
tag
or,should i create new php code called menu.php to ensure your very cool code works?
thank you
WordPress Suckerfish Menu | Dustin Edwards on: February 5th, 2008 at 6:28 am
[...] can be found at Invoke Media and RockinThemes. Update 1: Ryan Hellyer has created a Suckerfish WordPress Plugin and may also be able to answer any questions for people stuck on a technical [...]
Haven Rich on: February 8th, 2008 at 4:17 pm
I’ve used this on one of the sites I’ve created and it looks great, but I’m not really a huge fan of the Archives and Categories on the menu. What coding needs to be removed to take those off?
BTW, I’ve tried to slice the coding, but it doesn’t work so I thought I’d ask for advice here.
witchypoo on: February 8th, 2008 at 6:27 pm
Hi Ryan. Love your plugin. We have another live site for you, and it looks purdy too.
http://www.dutchblitz.net/
I have a question though. This site has archives since 2006. Is there a way to code the archives so that there is a submenu (flyout) for the months of each individual year? I know how to do this in CSS unordered lists, but php? Not so much.
And she has a fair amount of archives.
Ryan on: February 8th, 2008 at 7:14 pm
Haven Rich, what exactly do you want on the menu? There are various options available which can be seen on the demo page. If none of them match what you are looking for, then just let me know and I’ll either add them to the plugin or provide you with a custom code to display them (assuming it is something which is possible).
Witchypoo - I’ll post back later in the evening with instructions on how to change the archives. I can’t remember off the top of my head how to do it, so will need to look it up first.
Ryan on: February 8th, 2008 at 7:15 pm
http://www.dutchblitz.net/ has now been added to the list of live examples.
Ryan on: February 8th, 2008 at 7:40 pm
Witchypoo - I haven’t figured out how to do the years as flyouts, but I have figured out how to add them as plain yearly links instead of monthly ones. The following code will do the job, just replace it instead of the <?php suckerfish5() ?> code I assume you were using before.
<?phpecho '<ul id="suckerfishnav">
<li><a href="' , bloginfo('url') , '/">Home</a></li>
' , wp_list_pages('title_li=') , '
<li><a href="#">Archives</a>
<ul>' , wp_get_archives(type=yearly) , '</ul>
</li>
<li><a href="#">Categories</a>
<ul>' , wp_list_categories('title_li=') , '</ul>
</li></ul>' ?>
I haven’t tested this, so just let me know if it doesn’t work and I’ll look into it.
witchypoo on: February 8th, 2008 at 8:26 pm
Well, actually, I miscommunicated. Each year should be a submenu item, with the months for that year as the flyouts.
Ryan on: February 8th, 2008 at 9:39 pm
Witchypoo - No, you communicated fine. I just haven’t figured how to do that yet.
Ryan on: February 9th, 2008 at 7:44 pm
The plugin is now available in the official WordPress Plugins Repository.
Please keep leaving any questions/comments about the plugin here though.
Ryan on: February 10th, 2008 at 10:44 am
I was hoping someone had combined suckerfish and WP. I’m going to try to incorporate this into my next WP theme design and see how it goes. If styled right, I think it could be a great addition to any WP theme.
Creeva’s World 2.0 » links for 2008-02-11 on: February 10th, 2008 at 1:33 pm
[...] Suckerfish WordPress Plugin | Ryan Hellyer [...]
Ryan on: February 10th, 2008 at 1:59 pm
Glad you like my plugin Ryan. Let me know once you get it up and running and I’ll add your link to my examples list.
Iva on: February 11th, 2008 at 4:32 am
Amazing plugin which saves a huge amount of time. Thank you:)
P.S. I also wanted to tell you that you forgot the apostrophe in the plugin’s name on WordPress extend page.
Ryan on: February 11th, 2008 at 11:43 am
Glad you like it. Thanks for the correction
I’ll fix it during the next update.
I don’t like the plugin name at all. I hadn’t realised how silly it would look in the main WordPress plugin index without a simple self-explanatory name. I can’t figure out how (or if it is possible) to change it now though
Pop ups that aren't actually pop ups! - Web Development Forum on: February 12th, 2008 at 10:27 pm
[...] a WordPress plugin for creating dropdown menus which may be useful as a demonstration for you … Plugin page | Demo page If you have a look at the code on the demo page, you will see that the CSS file [...]
Forum trackbacks - Web Development Forum on: February 12th, 2008 at 11:22 pm
[...] on my own blog as a trackback! You can see it in the comments section of the following page … Suckerfish WordPress Plugin | Ryan Hellyer Actually, another one will probably appear when I post this new topic. I have now become a fan of [...]
Istvan on: February 13th, 2008 at 1:34 am
I have another question…is possible to have the drop down menu not in fixed width but relative to the word?
For example: “About me” will be on one row
“my interestes, books..” will be two row
Obviously I can increase its width but the first one will have a lot of empty space at the left side of the word…
Thanks
3m on: February 14th, 2008 at 5:01 am
This is a great plugin, thanks!
It works for me but something is causing my drop downs to go behind my middle column. I don’t have the drop downs live on my site yet because of this, but if you could give me some ideas on how to get around this, I’ll definitely put them in.
Love it!
http://1morechapter.com
Chris on: February 14th, 2008 at 5:09 am
Hi, Great menu. I was wondering if its possible to add some bullets or image bullets preferably to the dropdown links? I tried adding some list styles to the CSS file but it doesn’t seem to stick.
Thanks!
3m on: February 14th, 2008 at 6:27 am
OK, I researched and found that if I put
z-index: 99;
into the first line before the margin, it seems to work.
ONLINE | Lebensmittelfotos.com on: February 14th, 2008 at 7:43 am
[...] dem Menüpunkt Wichtiges. Das obige Dropdown-Menü wurde übrigens unter Zuhilfenahme des Plugins “Suckerfish” realisiert. Anders wären die diversen Fotogallerien, vor allem die noch kommenden, nicht [...]
3m on: February 14th, 2008 at 8:26 am
If you can’t do this, it’s no big deal (I was too afraid to try it myself), but I’d like an option with Pages, Categories, Blogroll, Archives. That would be perfect for me!
I understand if you are too busy to do that.
Thanks for a fabulous plug-in!
Ryan on: February 14th, 2008 at 9:10 am
Hi everyone,
I’m a little busy right now, but I’ll try to sort out the things you have asked for.
3M - what you have asked for isn’t very difficult so I’ll definitely get on to that. If I don’t post back here with a solution tomorrow then send me a message via my contact form to remind me.
3m on: February 14th, 2008 at 9:36 am
I had to deactivate it temporarily because when I clicked on a single post entry, the post wouldn’t show up. I’ll work on it.
3m on: February 14th, 2008 at 10:41 am
Whatever is happening is only occurring with firefox. In internet explorer it is okay. When I click on a single post entry, all I get is white space.
This may have something to do with it: It must be in my layers. I have a ‘falling hearts’ effect that is going on the top of my left sidebar, behind my middle column, and somewhere in the middle of my third column. If I can fix the layers, the evidence being that the hearts fall on top of all three columns, the plugin will probably work for firefox. I could try it with another theme. It’s probably in the theme code, though I’ve been having problems with firefox stuff lately (usually it’s IE).
Arrgh!
Ryan on: February 14th, 2008 at 11:08 am
3m - I don’t understand. Do you have a test site? Or should I be able to see the problem on http://1morechapter.com/?
3m on: February 14th, 2008 at 12:15 pm
Yes, if you go to my site, the hearts are falling, but they go in front of the text in my left sidebar, and when they reach my main column, they disappear behind the container instead of going in front of the text. In the right column, you can see they’re in between the background and the text. I think it has something to do with my layers. Again, this is just in firefox, not in IE.
I had to disable the drop downs temporarily because when I click on a single post, I didn’t get it OR the sidebars. Just the white container.
Ryan on: February 14th, 2008 at 1:17 pm
That sounds like a Z-index problem most likely. If you don’t have it sorted by tomorrow I’ll take a look and see if I can sort a fix for you.
Nice touch for your theme by the way. The hearts certainly do make your site stand out.
Ryan on: February 14th, 2008 at 1:19 pm
3m - I had a quick look now, and I suspect your .postspace2 or #content in your CSS has a Z-index higher than those hearts. If you try changing your Z-index for those, you should be able to fix the hearts problem (I think). Hopefully it doesn’t break something else in the process though!
3m on: February 14th, 2008 at 8:30 pm
I think everything is working now. It was an overflow hidden issue. Pretty dumb reason–I’m no coder.
bug on: February 15th, 2008 at 11:18 am
Hey…great plugin..Really useful
One question: How would one go about adding a 500ms delay to the mouseout? I’m pretty brain dead when it comes to JS and I haven’t had much luck getting it to work.
3m on: February 15th, 2008 at 1:18 pm
I’m loving this plugin! Just wanted to know if it’s possible to tweak it so that if you have more than 15 items on the “wing out” that it adds another column on the wing so it doesn’t go below the bottom of the monitor. For instance, I have ‘authors a-z’ in my categories, with 26 for each letter. If I could display it in two columns it would be great and a lot easier to see. About 15 would work for me if it’s possible. That way I’d have one column with 15 and one with 11.
Just thought I’d ask! If it can’t be done I’ll work around it.
http://1morechapter.com
Ryan on: February 15th, 2008 at 2:03 pm
3m - here’s some code to display Pages, Categories, Blogroll and Archives …
<ul id="suckerfishnav">
<li><a href="#">Pages</a>
<ul><?php wp_list_pages('title_li='); ?></ul>
</li>
<li><a href="#">Categories</a>
<ul><?php wp_list_categories('title_li='); ?></ul>
</li>
<li><a href="#">Blogroll</a>
<ul><?php wp_list_bookmarks('title_li=&categorize=0'); ?></ul>
</li>
<li><a href="#">Archives</a>
<ul><?php wp_get_archives(); ?></ul>
</li>
</ul>
Ryan on: February 15th, 2008 at 2:20 pm
3m - the double columns you are asking for in the dropdown would be tricky. It may be possible to do this by applying a width to each item and then floating them left or displaying them inline to cause them to show as two columns. This should be possible to do by modifying the CSS file, but you will need to know quite a lot about CSS to do it and it’s not something I intend to do myself.
Bug - I also know very little about Javascript. The Javascript for this plugin is borrowed from elsewhere and doesn’t do anything more than correcting bugs in very old browsers. If you find a way to create a delay, I’d love to hear about it!
Ryan on: February 15th, 2008 at 2:34 pm
Istvan - sorry, but I don’t understand your question.
Latest Bookmarks on Ma.gnolia.com at Ivan Enviroman on: February 15th, 2008 at 9:14 pm
[...] Suckerfish WordPress Plugin | Ryan Hellyer [...]
Ryan on: February 15th, 2008 at 11:08 pm
Chris - I had a brief go at getting list styles to work but had a few issues. An easier way to achieve this affect I found was to apply the :before pseudo class to the links like so:
#suckerfishnav li li a:before {content: url(bullet.gif)}The code is edited in the CSS file which came with the plugin
This solution won’t work in IE though.
What I ordered on: February 16th, 2008 at 2:30 am
[...] you blog with wordpress is my new drop down navigation menu. I got it from a wordpress plug-in from Ryan Hellyer. A plug-in is where someone does the programming for you, and you just ‘plug in’ some [...]
3m on: February 16th, 2008 at 2:43 am
Thanks for the code, Ryan! I probably won’t do it immediately because I’ll have to break down my blogroll into smaller categories for all of them to fit. That’s what I did with my a-z authors and titles. I just split them in half and that seems to work well.
Thanks again for a wonderful plug-in!
Umj on: February 16th, 2008 at 3:18 am
how could i replace the current horizontal menu with this one?
when i include the code in the header.php… i end up with 2 horizontal menus.
tks
Ryan on: February 16th, 2008 at 8:41 am
Umj - are you referring to the code I posted for 3m above? If so, just remove the < ?php suckerfish(); ?> code from your header.php as that is what is being replaced by the code I provided above.
Wac on: February 17th, 2008 at 10:49 am
Ryan - I love this plugin it works like a charm - exept on my modified old mambopress theme. I cant make it do the drop-down….. Can You see whats going on in there? The suckerfish is on the top menuline. Thanks for all your hard work on this!!
Ryan on: February 17th, 2008 at 6:56 pm
Wac - I can see the following error in your theme …
<ul id=”mainlevel-nav”><li class=”<ul id=”suckerfishnav”><li>
It looks like you have placed the plugin code inside a class statement for your list. The plugin must be outside of the list entirely.
Leave another comment if you can’t figure out how to fix it and I’ll look up the theme and send you the exact code you need to get it to work.
steve on: February 19th, 2008 at 3:29 am
Hi Ryan,
Can I pick your brains?
I’ve just come across your wonderful plugin and hoping it can do what I want on this site (www.pepperedsprout.com)
It’s built in wordpress(duh)and had a previous incarnation when I was asked if I could change the menu. I’ve installed your plugin and can’t seem to get it to work as I envisaged.
There’s only going to be 3 menu items(horizontal)… about, publishing, and CV - and what’s required is a dropdown appearing on the rollover on the ‘publishing’ - can this be done?
thanks in advance
Steve
Ryan on: February 19th, 2008 at 10:02 am
Steve - All I see is an “Under construction” message on your site along with your contact details.
DanielRiem on: February 20th, 2008 at 2:52 pm
Ryan,
Thanks for the plugin. You are one of the few people to make a drop down menu. Thanks.
My big hangup is that the font and tab size are too big. Any way to change that? Where?
Ryan on: February 20th, 2008 at 3:02 pm
DanielRiem - When I designed the plugin, I made it work with the default Kubrick theme. Unfortunately it sets a very small font-size which affects this plugin. I will be correcting this in a future version which will be release some time in the next month or so.
In the mean time, you can change the font size and the width of the dropdown menu by editing the ryans_suckerfish.css file (found in the plugin folder).
Here’s the code you need to edit for the font size:
#suckerfishnav { ... font-size:1.3em;}And here’s the codes you need to edit to change the width of the dropdown:
#suckerfishnav li li {... width:9em; …}#suckerfishnav li ul a {width:9em;}
#suckerfishnav li ul ul {margin:-1.50em 0 0 10em;}
If that doesn’t work, then let me know as I may have made an error.
Leo on: February 20th, 2008 at 6:21 pm
Hey Ryan,
I was wondering if you could help me,
have taken a look at your plugin and really like it, however I don’t like the
fact that it makes use of javascript for the older browsers.
I have seen cross browser drop down menus that just make use of CSS. A great
website with examples is cssplay.co.uk. The only problem I face is that the
markup that those menus use are different to the markup that is outputted by
wordpress. I thought it would be near impossible to change the outputted mark
up of wordpress but apparently not. Whilst searching the net I have come across
another plugin at this address
http://www.thanhsiang.org/faqing/node/58#comment-353
When I took a look at the coding it seems that this plugin makes use of one of
the menus found on CSS Play
(http://www.cssplay.co.uk/menus/drop_examples.html)
but has been altered but the markup has been altered slightly again and so it
has lost its cross browser functionality.
I myself am a complete newbie at php and so my knowledge is very limited. I am
trying to build a theme for wordpress which is completely cross browser
compliant which makes use of just CSS. I have gotten pretty far although I am
stuck now as I am unable to build a menu system that works the way I want it
to.
You can see two versions of my design at
dingo-style.com and http://www.richardpearse.co.uk
I was wondering if you would perhaps be able to help me out?
Ryan on: February 20th, 2008 at 6:23 pm
Leo - from what I can see of the dropdown you linked to, it seems to be using the same approach that I am, but without using Javascript to help out older browsers, so I am assuming it will break in IE6 and older - I haven’t checked this though (I’ll have a look tonight to confirm).
Thanks for the link by the way. The only other dropdown plugin for WordPress I had seen was the JQuery Dropdown Plugin.
Stu Nicholls at CSS Play uses HTML tables hidden inside IE conditional comments to create the dropdown with Javascript. This does allow users of very old browsers to use your menu even without Javascript, but this is at the expense of a bunch of non-semantical HTML being jammed in between conditional comments. Most people (including myself) prefer the Suckerfish approach, ie: using Javascript to help out IE6 and older. There are merits in Stu Nicholls approach though.
Dropdown menus by their very nature are notoriously non-browser compliant and will be for quite a few years to come. For example most cellular phones, PDA’s and other mobile devices will struggle to render them correctly. So if you are looking for the most cross browser design possible, then I suggest not using a dropdown at all.
I have no idea how to change the output of the HTML lists that WordPress generates. These would need to be altered to use the CSS Play style menus. I’m sure it is possible, but I think you would probably need to hack the WordPress core files to do it.
EDIT: for any of you who are interested in learning about the finer points of designing non-suckerfish dropdown menus, Stu Nichols website (CSSPlay.co.uk) is a wonderful resource. He truly is the master of cross browser compliant dropdowns which work in older browsers without javascript on. Personally I’m not a fan of this approach, but like I said above, it does have it’s merits. Even if you aren’t interested in using his technique, his site has some brilliant examples of what can be done with a bit of lateral thinking.
Ryan on: February 20th, 2008 at 6:56 pm
I’ve had a closer look at the plugin you linked to. But it looks like it is also a suckerfish dropdown though. The following code is a giveaway as it is almost identical to that used by my own plugin:
<script type="text/javascript"><!--//--><![CDATA[//><!--
sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=” sfhover”;
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(” sfhover\\b”), “”);
}
}
}
if (window.attachEvent) window.attachEvent(”onload”, sfHover);
DanielRiem on: February 20th, 2008 at 7:10 pm
Ryan,
You must really love your plugin bc you answer everyone’s questions so quickly.
Thanks so much for the reply about changing sizes. I got that. But I just cant figure out why the plugin works better on ie and not on firefox on my site. i tried about everything and am still dumbfounded. my site is http://www.storiesof.us
You da man!
Ryan on: February 20th, 2008 at 9:40 pm
DanielRiem - This is the first piece of software I’ve ever made and it’s quite exciting to see that other people find it useful.
Something weird is happening with your site. I can’t understand why it isn’t working with Firefox. I’ll take a closer look and post back when/if I find a solution for you.
Nice domain name BTW
Ryan on: February 20th, 2008 at 9:56 pm
DanielRiem - Firefox Web Developer toolbar to the rescue! I used the outline block elements option in it which outlined your #content block which is obscuring part of the menu. The #content block is transparent, so you can’t actually see it, but since it is overlapping the menu then it blocks the mouseover effect.
The problem is related to the use of relative positioning in the theme. I usually recommend using floats to avoid these types of issues. Your sidebar is floated rather than using relative positioning hence the menu isn’t suffering this problem on the left hand side.
If you replace #content in your style.css file with the following, the problem should be cured.
#content {width:600px;
margin:0 0 20px 0;
float:left;
padding:10px 18px 15px 18px;
text-align:justify;
}
If that doesn’t do the trick, then let me know and I’ll take a second look.
Ryan on: February 20th, 2008 at 10:00 pm
I’ve now released a Beta for Version 1.1 which features an options panel for editing the look of the dropdown. It is available here …
Suckerfish Plugin Version 1.1 Beta
Ryan on: February 20th, 2008 at 10:51 pm
Leo emailed me with a link to his own site which uses the plugin he originally linked to. It seems that the demo site uses a similar method to that used here, but ironically the plugin does not!
The plugin does indeed use the CSSPlay style method of creating the dropdown. I don’t intend to use this method myself as I prefer the suckerfish approach, but it is interesting to see that someone has created a plugin for this purpose.
Here is Leo’s demo site … http://www.dingo-style.com/
And in case you missed it, here is a link to the plugin … http://www.thanhsiang.org/faqing/node/58#comment-353
Oleksiy on: February 21st, 2008 at 8:55 am
Ryan,
I am trying to install a new blog for my wife and have troubles to connect your plug in even default theme. When I use I am just getting black page. However when I use I can see categories. I am not a developer but suspect that some reason function was not called properly. Can you please comment this ? Thank you
Adrian Balan on: February 21st, 2008 at 3:20 pm
I’m using this plugin on my website(www.pozne.ro). I want to know how I can make the sub-menus to be horizontal ?
Ryan on: February 21st, 2008 at 4:05 pm
Adrian - I haven’t tried, but I think if you increase the width of the dropdown, the menu items should (in theory) appear side by side underneath the section it is dropping down from. You can alter this by changing the suckerfish.css file which came with the plugin.
I may look at introducing this functionality later, but at this stage I’m concentrating on making sure it can do the basic dropdown functionality as well as possible.
Ryan on: February 21st, 2008 at 4:08 pm
Oleksiy - I tried to visit your site but it wasn’t working. I wasn’t sure if this was the site you are having trouble with either.
I haven’t heard any reports of a function being called wrong until now, so I’m assuming there is another problem you have come across. If not, I would love to hear confirmation so I can figure out a fix for it.
A link to the site in question would be very useful.
Kevin on: February 21st, 2008 at 8:52 pm
Hi Ryan
I have installed your drop down menu files and it’s woking ok.
However, I seem to be getting a double space menu bat when it drops down.
http://www.nlcprojects.com/church
Maybe you could take a look and advise accordingly?
Thanks
Kevin
Ryan on: February 21st, 2008 at 8:52 pm
Kevin - I released a beta version of my plugin today which may correct your problem. I suggest trying that and see if it fixes your problem. If not, then leave a comment on my blog and I’ll see if I can find another solution for you.
The beta of Version 1.1.2 of the plug is available here … http://ryanhellyer.net/2008/02/20/suckerfish-plugin-11-beta/
If you don’t want to use the untested beta version, then you could copy the CSS file from the new plugin and replace the CSS file from the old one and it should (I think) correct your problem.
Kevin on: February 21st, 2008 at 8:53 pm
Hi Ryan – thanks for getting back to me
I tried installing the beta version, but got a mysql error which wiped out everything but my header graphic!
Forynuately I backed the existing plugin up as I made some changes to the colours etc to macth the header light grey.
I then tried copying the css file over as suggested, that corrected the size of the text OK, but didn’t correct
the error on the actual drop down – it’s a visual error in my opinion.
Kevin
Ryan on: February 21st, 2008 at 8:54 pm
Woops, it seems I made two major errors with the beta version. They are fixed now.
I’ve taken a quick look at your themes style sheet and all you need to do is remove the following code from your style.css file in your theme and the problem should be solved:
#navigation li a:hover {background-color: #d2d2d2;
color: #000;
}
Let me know if that doesn’t do the trick and I’ll take another look.
Kevin on: February 21st, 2008 at 9:14 pm
Bingo! Thanks Ryan - that’s worked . . . will your beta change the height of the menus?
Thanks again
kevin
Ryan on: February 21st, 2008 at 9:16 pm
Kevin - Good to hear your problem is fixed.
No the beta version of the plugin does not control the height of the menus. You can alter that by editing the suckerfish.css file which comes with the plugin by hand.
Kevin on: February 21st, 2008 at 11:19 pm
Hi Ryan
Thinking about the height of the menus – logically, it cannot be Suckerfish to blame . . .
It must be in the theme somewhere.
I’ll check it out – I guess it will be labelled navigation or something.
I will be in touch
Kevin
Ryan on: February 21st, 2008 at 11:21 pm
Kevin - Do you want the main menu items to have the same styling as the dropdown in my demo does? If so, just remove all of the #navigation styling from your themes style.css file. That should fix it. I assumed you wanted to keep that styling, hence I didn’t suggest you correct it last time.
Oleksiy on: February 22nd, 2008 at 1:34 pm
Ryan - Thank you for response. It was user error.
Everything works perfectly fine. Started to build template. Will share with you my results. thank you again. Great plug in
links for 2008-02-23 at orioa on: February 22nd, 2008 at 4:33 pm
[...] Suckerfish WordPress Plugin | Ryan Hellyer WordPress Dropdown Plugin Beta (tags: WordPress Plugin) [...]
Ryan on: February 23rd, 2008 at 12:04 pm
I’ve now released a theme which features a Suckerfish Dropdown menu. It does not use this plugin, as the dropdown is hard coded into the template files … http://ryanhellyer.net/2008/02/23/aqua-vaccinium-wordpress-theme/
All questions related to this new theme should be posted in the themes blog post.
Kel on: February 24th, 2008 at 9:50 am
Two problems.
1- It brings a gray background behind the buttons and I cannot find where that is in the code. I just want to remove or change the color. Seems easy enough but I cannot figure it out.
2- The drop down menus hide behind my content in the left and right side bars.
Please help.
Thanks
Bill Hobbs on: February 24th, 2008 at 5:30 pm
I’m currently building a blog for a lawyer friend, and am trying to use suckerfish, but can’t get the drop down menus to center with the rest of the site.
http://www.americancourthouse.com
here is the css:
#suckerfishnav {background-color:#323232;font-family:verdana,sans-serif;font-weight:bold;font-size:1.2em;}
#suckerfishnav, #suckerfishnav ul {float:left;list-style:none;line-height:1;padding:0;border:0px solid #000;margin:0 0 1em 0;width:100%;}/*can specify a fixed width here if you want, ie: width:30em;*/
#suckerfishnav a {display:block;color:#eee;text-decoration:none;padding:0.25em 2em;}/*can specify a fixed width here for each first level button if you want, ie: width:10em; You must also modify the #suckerfishnav li as well*/
#suckerfishnav li {float:right;padding:0;}/*can specify a fixed width here for each first level button if you want, ie: width:10em; You must also modify the #suckerfishnav a as well*/
#suckerfishnav li ul {position:absolute;left:-99em;height:auto;width:10em;font-weight:normal;;margin:0;}
#suckerfishnav li li {padding-right:1em;width:9em;border-top:1px solid #000;}
#suckerfishnav li li a {padding:0.2em 1em;}
#suckerfishnav li ul a {width:9em;}
#suckerfishnav li ul ul {margin:-1.50em 0 0 10em;}
#suckerfishnav li:hover ul ul, #suckerfishnav li:hover ul ul ul, #suckerfishnav li.sfhover ul ul, #suckerfishnav li.sfhover ul ul ul {left:-99em;}
#suckerfishnav li:hover ul, #suckerfishnav li li:hover ul, #suckerfishnav li li li:hover ul, #suckerfishnav li.sfhover ul, #suckerfishnav li li.sfhover ul, #suckerfishnav li li li.sfhover ul {left:auto;background-color:#bbb;}
#suckerfishnav li:hover, #suckerfishnav li.sfhover {background: #81AFD5;}
I have played with it and can’t get it to center.
Help!
Ryan on: February 24th, 2008 at 6:18 pm
Bill Hobbs -
Try changing this:
#suckerfishnav, #suckerfishnav ul {float:left;
list-style:none;
line-height:1;
padding:0;
border:0px solid #000;
margin:0 0 1em 0;
width:100%;
}
to this:
#suckerfishnav, #suckerfishnav ul {float:left;
list-style:none;
line-height:1;
padding:0;
border:0px solid #000;
margin:0 auto 1em auto;
width:20em;
}
That will give the menu a fixed width and center it via the margins. You will need to adjust the width to suit, 20em’s was just a guess.
It is very important to set the width in em’s, not px’s or pt’s as using anything else will cause the menu to goof when the user changes their text size. Also, make sure you test it in Safari, IE7 and Firefox/Opera as they all have different text widths and what may work in one, may be too skinny for the others.
Ryan on: February 24th, 2008 at 6:26 pm
Kel - for styling the dropdown menu, try the new beta plugin as that should be a lot easier for you to control the design with.
Try removing position:relative from 1_sidebar in your CSS to fix the dropdown hiding behind the sidebar problem. If that doesn’t work, then post back and I’ll take another look.
Lisa on: February 25th, 2008 at 3:07 pm
Having problems installing the plug-in, whenever i add code, it removes it.
Not even sure i am putting it in right place, complete web-building novice!
Is this the right plug-in to add drop down menu to parent group bar, to navigate sub-group pages without having big list at side of page?
Jason on: February 25th, 2008 at 11:48 pm
Ryan,
I have to start off by saying I am a true ovice with css and php, but i can find code, usually, when I’m told what to look for… Found your drop-down plugin — super sweet by the way — and would like to implement it at prospectinsider.com. Have yet to find the proper spot to place the code, however, and am still wondering whether it will work within my “pages” that I have custom labeled (you can see it below my header image at prospectinsider.com)… I’d like to create drop-down pages for those pages… I’m using the tiga theme. If you find a minute to shed some light for me, I’d appreciate it.
Ryan on: February 25th, 2008 at 11:51 pm
Jason - There’ s probably some code which looks something like the following in your header.php file:
<div class="menu-bar"><?php wp-list-pages(); ?>
</div>
If you replace the <?php wp-list-pages(); ?> with the <?php suckerfish(); ?> the dropdown menu should appear in the correct place I think. If this doesn’t work then send me a link to a test blog and I’ll see what I can do from there.
Jason on: February 25th, 2008 at 11:52 pm
My dummy site, sixtoolers.com, is available for trials and the theme is the same one I’m using at the main site, without the customization, of course.
Looking at my main site at prospectinsider.com, does it even seem like adding these kinds of funtionalities will work without disturbing the customization of the current menu toolbar?
Thanks for the help,
Ryan on: February 25th, 2008 at 11:55 pm
Jason - What you need to do, is to edit your header.php file in your theme. Find where it says
<div class="menu-bar">and then find where it says
</div>… after that. Delete everything in between those
two pieces of text and replace it with
<?php suckerfish(); ?>Then re-upload the header.php file to your web host and make sure the dropdown plugin is activated in your WordPress admin panel. The dropdown should then appear. If it doesn’t look correct, then let me know and I’ll see if I can sort out a bug fix to make it look right.
If you want to edit the look of the plugin yourself, then try the new Beta plugin instead of the current as you can edit lots of different things with that version, including the font, colour, font size, background colours
etc. of the dropdown menu.
Jason on: February 25th, 2008 at 11:55 pm
sixtoolers.com
That’s the result when i followed your instructions…
Also, not sure what you meant by “re-upload the header.php file” because when I did that all it did was replace the file I just inserted the suckerfish code into with the original header file again…
Did i read that wrong?
Sorry for being such a novice…
Ryan on: February 25th, 2008 at 11:59 pm
That is very bizaare! The content which belongs in the head tags has ended up inside your menu instead of the dropdown!
This must be some sort of bug in the beta version. Leave the code as is, and try installing the original version of the plugin instead. That should work. I’ll have a look to see if I can sort out the bug in the beta in the mean time.
EDIT: A new version of the beta plugin has been released which corrects this problem.
Ryan on: February 26th, 2008 at 12:05 am
Lisa - I’m not 100% sure of what you are asking. But take a look at the demo page and you can see what this plugin does.
The site you have left the link for does not seem to have the plugin activated. If the plugin is uploaded and activated, the plugin code should appear between your head tags which it currently does not.
Once you have the plugin activated, all you need to do is to add the following code wherever you want the dropdown menu to appear in your template:
<?php suckerfish(); >Lisa on: February 26th, 2008 at 12:28 am
Yes sorry thats what i want it to do.
Have activated plug-in in admin, but when i copy paste the code into header.php, and go to check if its worked, when I look back in header.php its deleted it.
Have looked at other replies to see exactly where to put it, maybe putting in wrong place?
Ryan on: February 26th, 2008 at 12:43 am
Lisa - Is the URL for your site the same as the link you have been posting with? ie: http://www.montrosecaledoniagolfclub.co.uk/?
As that site does not appear to have the plugin activated.
I don’t think you are putting the code in the wrong place, something more bizarre is happening.
Are you using the template editor in WordPress? I have never used that. It may be editing your code like the regular WordPress post editor does - I’m not sure about that though. Perhaps you should try editing the file on your computer and re-upload it.
Jason on: February 26th, 2008 at 12:43 am
the menu bar mountain…
sixtoolers.com
Ryan on: February 26th, 2008 at 12:44 am
Jason - The menu-bar class is messing your dropdown up. Try changing:
<div class="menu-bar">to just
<div>That should at least get the dropdown menu working. Although you will lose all the styling which you have applied to your told menu.
Lisa on: February 26th, 2008 at 1:57 am
lol, too complicated for me, its two seperate servers? Golf one is on amber.net, I’m using orange? Your plugin is definately in my list of plug-ins on site and activated?
Yes trying to edit via wordpress theme editor, could it be theme is not editable?
Wouldn’t have a clue how to edit file on computer so may have to leave it.
Ryan on: February 26th, 2008 at 9:43 am
Lisa - yes, it may be your theme. I’m busy right now, but I’ll post back with instructions on how I think you can correct that. If the problem is what I think it is, then you may have troubles with lots of other plugins too.
Ron on: February 26th, 2008 at 9:12 pm
Ryan, I am trying to modify the SuckerFish WP Plugin to suit my
website. One of
the issues I’m having is that I have modified my “widgets.php” file to
exclude
certain categories by ID. The SuckerFish code doesn’t utilize the
modifications
made. Could you please point me in the right direction as to how I can
get this
to work? Any help is greatly appreciated.
Keep up the great work Ryan.
Ryan on: February 26th, 2008 at 9:28 pm
Ron - here are the raw codes you need to display the dropdowns without category number 10. You can edit the bit which says &exclude=10 to change which category is excluded from the dropdown and adding (for example) &exclude=3 after the first will remove category 3 as well.
This is the raw php code, so you don’t need to use the functions with these, ie: this replaces the <?php suckerfish(); ?> code. Each of the codes below are labelled with their corresponding suckerfish function.
If you have any troubles, the code doesn’t work (I haven’t tested it) or my explanation is confusing then post back here and I’ll see what I can do to help.
suckerfish()
<?php echo '
<ul id="suckerfishnav">
<li><a href="' , bloginfo('url') , '/">Home</a></li>
<li><a href="#">Pages</a>
<ul>' , wp_list_pages('title_li=') , '</ul>
</li>
<li><a href="#">Archives</a>
<ul>' , wp_get_archives() , '</ul>
</li>
<li><a href="#">Categories</a>
<ul>' , wp_list_categories('title_li=&exclude=10') , '</ul>
</li>
<li><a href="#">Blogroll</a>
<ul>' , wp_list_bookmarks('title_li=&categorize=0') , '</ul>
</li>
</ul>';
?>
suckerfish1()
<?php echo '
<ul id="suckerfishnav">' , wp_list_pages('title_li=') , '</ul>';
?>
suckerfish2()
<?php echo '
<ul id="suckerfishnav">
<li><a href="' , bloginfo('url') , '/">Home</a></li>
' , wp_list_pages('title_li=') , '
</ul>';
?>
suckerfish3()
<?php echo '
<ul id="suckerfishnav">
<li><a href="#">Pages</a>
<ul>' , wp_list_pages('title_li=') , '</ul>
</li>
<li><a href="#">Archives</a>
<ul>' , wp_get_archives() , '</ul>
</li>
<li><a href="#">Categories</a>
<ul>' , wp_list_categories('title_li=&exclude=10') , '</ul>
</li>
<li><a href="#">Blogroll</a>
<ul>' , wp_list_bookmarks('title_li=&categorize=0') , '</ul>
</li>
</ul>';
?>
suckerfish4()
<?php echo '
<ul id="suckerfishnav">
' , wp_list_pages('title_li=') , '
<li><a href="#">Archives</a>
<ul>' , wp_get_archives() , '</ul>
</li>
<li><a href="#">Categories</a>
<ul>' , wp_list_categories('title_li=&exclude=10') , '</ul>
</li>
</ul>';
?>
suckerfish5()
<?php echo '
<ul id="suckerfishnav">
<li><a href="' , bloginfo('url') , '/">Home</a></li>
' , wp_list_pages('title_li=') , '
<li><a href="#">Archives</a>
<ul>' , wp_get_archives() , '</ul>
</li>
<li><a href="#">Categories</a>
<ul>' , wp_list_categories('title_li=&exclude=10') , '</ul>
</li>
</ul>';
?>
Flick on: February 26th, 2008 at 11:44 pm
OMG, you actually rock so much! I found out about your plugin via the ‘Paged Comments’ plugin page, and was really excited! I’m using a mangled version of Suckerfish (I mangled it) on my site at the moment, and was thinking hard about what menu system to use next (I love Suckerfish for its simplicity and cross compability, and the fact it works without J-script) and was a little bit stuck since some of the more up-to-date solutions are actually more problematic to troubleshoot. Am glad that this is really something that I could use instead!
Thanks!
Andy on: February 27th, 2008 at 5:15 am
Ryan, great plug-in. Many thanks. Is there a way to add a child menu indicator on a parent list item? An arrow or something that indicates a link has a child menu.
Regards,
A
Ryan on: February 27th, 2008 at 10:14 am
Flick - glad you like it
Ryan on: February 27th, 2008 at 10:15 am
Andy - no, I haven’t figured out a way to do that reliably yet. That is on my list of things to do though.
Dan on: February 29th, 2008 at 3:44 am
I like your blog theme. I want to use it on my blog.
Can you please tell me from where I can download these theme?
Many thanks
Ryan on: February 29th, 2008 at 8:40 am
Dan - The latest post on this blog would be a good start
http://ryanhellyer.net/2008/02/26/hellish-simplicity-wordpress-theme/
Dan on: February 29th, 2008 at 9:24 am
Hey Ryan,
very nice plugin you’ve set up here, however I’m having a bit of trouble with it.
I’ve had the same problem Jonathan had with the subpages list overlaying the first-level menu, though not with all themes.
Right now, I’m trying to customize the k2 theme (which does not have this overlaying problem), but I’m faced with another one : while the drop-down menu displays correctly, it vanishes as soon as I leave the page link. I can sometimes manage to “catch” the first subpage, but it is impossible to select the other subpages.
This happens with both Safari and Firefox 2.0.0.12 on MacOS 10.5.2, and IE6 on Windows XP.
I’d be grateful for any suggestion that could fix the problem, as I’m dead set on the idea of pull-down menus
Ryan on: February 29th, 2008 at 9:36 am
Second Dan - I think the problems you are facing are probably caused by you applying two UL’s to the same list. This creates invalid code and I’m assuming the first UL is apply styling as well which will be goofing up the plugin.
At the moment you have this:
<ul class="menu"><?php suckerfish(); ?></ul>But all you need is this:
<?php suckerfish(); ?>Hopefully that does the trick
Dan on: February 29th, 2008 at 9:29 pm
You hit the nail on the head! Thanks a lot, Ryan.
I really need to get seriously into CSS some time
Dan on: March 1st, 2008 at 5:03 am
Gah, I lost it again! Every time I insert any kind of vertical offset above the suckerfish nav bar, the dropdown menus are goofed.
It’s like the “hover” area gets smaller as the suckerfish bar goes farther away from the top of the page, it’s really weird.
Ryan on: March 1st, 2008 at 10:27 am
Dan - How are you inserting the “vertical offset”?
Are you perhaps adding a margin-top:50px or something along those lines to the
#suckerfishnav, #suckerfishnav ulline in your CSS file? If so, it may be that the margin is being applied to the child ULs and messing up your display accordingly.If so, maybe try adding some HTML instead, something like
<div style="width:100%;height:50px"></div>should do the trick.Daniel on: March 1st, 2008 at 11:07 pm
It would be great to see an administration panel hiding specific pages from the suckerfish menu as well as selecting a certain level that the menu will go down to so that you don’t have a huge level of submenu’s filling the screen.
thanks for the great plugin.
Dan on: March 2nd, 2008 at 4:08 am
Nope, I made sure that my changes weren’t made to a parent of the suckerfish styles (even tried adding 100px to the main title).
On the other hand, I played a bit with the suckerfish css, and I probably messed something there.
For the time being, I’ll build the site w/o suckerfish, and I might come back to this part later
Aaron on: March 2nd, 2008 at 8:26 am
This is a great plug-in. I have been trying to find a plug-in that functioned correctly for drop downs to no avail till I found yours. Great Job!
Ryan on: March 2nd, 2008 at 8:56 am
Dan - if you post a link to your problem site here I may be able to help.
Daniel - that’s a good idea, I’ll see if I can implement that in the next version.
brit on: March 3rd, 2008 at 9:27 am
Thank you so much for this plugin! I have a little question, i just want to display drop down categories ( under one top main), i have tried to modify it on my own but i have only managed to make drop down categories without the main top “categories” which cluttered the navigation bar. Can you please tell me what to remove from the php file to achieve that?Thanks!
Ryan on: March 3rd, 2008 at 10:01 am
Brit, try replacing the <?php suckerfish(); ?> code in your theme with the following. I think it is what you are trying to achieve, if not then let me know.
<?php echo '<ul id="suckerfishnav">
<li><a href="#">Categories</a>
<ul>' , wp_list_categories('title_li=&exclude=10') , '</ul>
</li>
</ul>';
?>
brit on: March 3rd, 2008 at 3:31 pm
It worked like a charm, thank you! And sorry to annoy you again, if i want to add pages also, what line should i add? I mean in the code you already gave me.
And one last question, the delay time (seconds before menu disappears) is a bit quick for me, can i change it?
Thank you!
Ryan on: March 3rd, 2008 at 5:47 pm
Brit - The following should do the trick
<?php echo '<ul id="suckerfishnav">
<li><a href="#">Pages</a>
<ul>' , wp_list_pages('title_li=') , '</ul>
</li>
<li><a href="#">Categories</a>
<ul>' , wp_list_categories('title_li=&exclude=10') , '</ul>
</li>
</ul>';
?>
I would love to see the final product, so feel free to post a link to your site once it’s done! Or leave a message via my Contact Page if you don’t want to post the URL here.
Mike on: March 3rd, 2008 at 6:14 pm
can you pleas take a look at my site http://www.slavelake.com
I am trying to use your plugin with the wordpress default theme I am
running
the newest version of wordpress.
can you please help me the menue is not lining up and the menu is
messing up
the side bare
thanks for the great plugin keep up the great work
Ryan on: March 3rd, 2008 at 6:23 pm
Mike - The code for the link you provided looks nothing like the default Kubrick theme. It is also missing a Doctype (required for the plugin to work in most browsers) and is missing the code for the plugin.
Kevin Russell on: March 3rd, 2008 at 7:44 pm
Hey Ryan - this seems like a great plugin. However, I’ve tried for hours trying to custom modify the CSS and playing around with the location of the PHP entry - and just can’t get it to display right. I finally did get the ‘hover’ fore-ground text color to display correctly by adding a ‘a:hover’ CSS section with the correct color. But as far as the main problem, I’m 99% sure that the problem is because of our template’s header ‘menu’ constraints and etc. - however I’m not sure how to change it to fix the problem.
It basically, most of the time, will not display the ’sub-pages’. The only sub-pages I have right now are under ‘Media’ - which are ‘Audio Sermons’ and ‘Video Sermons’. I’ve got it to semi-work by playing with the location of the PHP and putting it BEFORE the Main Menu section (and the drop-down displays semi-correctly) - but most of the time, when put it between where the normal menu section’s ’s are, it doesn’t display the sub-page under Media. Also, even when I have got it to display the sub-page, it would not ‘overlap’ the section underneath it (as if it’s something to do with the section’s constraints that it won’t let it drop-down and overlap like 1morechapter’s does above).
Hopefully this is fairly clear. I can correspond via email too if it’s easier - and/or instant messenger. Let me know if you can help - as I’d really like to use your plugin. Thanks.
Ryan on: March 3rd, 2008 at 9:52 pm
Kevin - I prefer to communicate here on the blog so that others can see the solutions/process to fix such problems.
The first error I can see is that you have placed the <?php suckerfish(); ?> code inside UL tags. Remove the UL tags and that should fix some problems.
I’m checking the rest of it now as there seems to be some other problems as well.
Ryan on: March 3rd, 2008 at 10:09 pm
Kevin - You are applying some styles via the #menu DIV tag which is surrounding it. Try removing the styles or the DIV and the menu will be able to drop down.
Then you have another problem as although the menu is then able to drop down, it’s dropping down behind the main content box. Try removing the position:relative from the following in your CSS. Hopefully removing it doesn’t mess your layout up. But it should fix the inability of the menu to hover above the main content.
.CON {background: #fff url(images/BGC.gif) repeat-y center;
width: 1000px;
float: left;
position: relative;
padding: 0px}
Also, I’ve taken a look at your style.css file and I see that you’ve added the suckerfish CSS code to it. That will be quite an awkward way to modify the style of the dropdown as those styles are replaced by the built-in style sheet which comes with the plugin. If you want to modify the CSS of the dropdown, it’s easiest to modify the suckerfish.css file for this reason.
Plus you have two </body> tags in your HTML, this doesn’t seem to be causing any problems, but would be good idea to fix anyway in case there are some unknown problems associated with doing that. Plus your code won’t validate.
Ryan on: March 3rd, 2008 at 10:17 pm
Brit - Sorry, I forgot to reply to you second question!
The delay time can not be changed. It is instant and I don’t now how to change that. It could probably be controlled by Javascript, but I know next to nothing about Javascript so can’t help sorry.
I suggest posting a question at http://sitepoint.com/forums/ in their Javascript section. If you do this and find a solution I’d love to hear about it as it is something I’d like to add as an option in future versions of the plugin.
Ryan on: March 4th, 2008 at 1:52 am
Mike - I saw some incoming WordPress links from myslavelake.com appear in my stats program so took a look. Is this your site perhaps? The link you left in your comment was to slavelake.com which does not look like it was built with WordPress at all.
If that is your site, then what problem are you having with your sidebar exactly? I couldn’t see any problems when I viewed it with Firefox2.0.
Ryan on: March 4th, 2008 at 2:06 am
Mike - The menu on myslavelake.com looks very nice. I like the addition of transparent menus. I was meaning to get round to figuring out how to do those and your example (I’m assuming that is your site) has been very useful in this regard. I’ve got it working in the last few minutes on my test version of the plugin and will be looking to add that functionality as an option in the next version.
??????? ??? ???? » ITbananas on: March 4th, 2008 at 3:53 am
[...] Suckerfish ????? ??? ?? ??? ?????? ????: Sons of Suckerfish ???? ??????? ????? ?- JQuery (??? ??? ?? ????? ??????) ????? ??: Ryan’s Suckerfish. [...]
Andy on: March 4th, 2008 at 4:45 am
“Andy - no, I haven’t figured out a way to do that reliably yet. That is on my list of things to do though.”
If there were a way to set the style of the parent li then you could add a style to cover an li with a child menu. Unfortunately the only way I can think of doing it would be with JS, something I’m trying to avoid. If only CSS allowed us to target the parent……. li ul<li or something….even li+ul would do it if it worked, but the adjacent selector doesn’t seem to stick in this instance.
Kevin Russell on: March 4th, 2008 at 8:17 am
Thanks so much Ryan!
As you can tell, I know enough to be dangerous with PHP and CSS - however I’ve actually added form fields that then have to process information to things. CSS was throwing me for a loop here though.
Thanks for spotting all that! I removed the extra body tag (that was me adding that since I saw it missing - not realizing Wordpress automatically adds it).
Also, was finally able to get the menus working! You’re right, I did have to place it before any of the Menu divisions - however I DID have to keep my menu division in because it messed up the layout when I took it out. However, for a workaround (since it left a blank spot), I just made the height 0px in the style sheet for it.
I’m sure there is a better way to fix it but I’m still learning here.
And - you got me on the right track on the position: relative removal. Not only did I have to remove it there, but in about 3-4 other spots - including in the Post Header and Post sections of the CSS. Once I did all that, it finally displays OVER everything instead of under - like it’s supposed to.
Lastly, thanks for the info on your custom CSS (ryans_suckerfish.css). I had used your beta initially - but it wasn’t wanting to let me fix the test (assumed it was overriding with values from the Admin plugin) - so I went back to the original version. Ironically, I had been able to override the values in my main style.css in your beta - but in your original version I reverted to, it apparently gets the info from your ryans..css file instead. Thanks for pointing that out though - because it probably is going to save me a lots of time wondering why some styles might have worked - and some didn’t.
Thanks again Ryan!
Kevin
Ryan on: March 4th, 2008 at 9:34 am
Andy - My knowledge of Javascript is abysmal, so if can find a way to do this with Javascript I’m all ears. It’s not something I would include by default, but it may be an option that some users would like. As long as it degraded nicely without javascript it could work quite nicely.
If you could apply a certain class to the parents, that would be optimal as I can add a style in the CSS which generates the arrow or whatever method people choose to display that the menu item has child items.
Istvan on: March 4th, 2008 at 10:48 am
As I posted some months ago I was testing your plugin and now is live here: http://www.videocalcio.net
Thanks for this plugin!
P.S.: I would like to suggest you for your next releases the possibility to add a sort of separator between categories/sub-categories.
Chris on: March 5th, 2008 at 7:09 am
Hello,
I was wondering if it was possible to use image buttons rather than the standard text the menu is set up with?
Thanks,
Chris
Ryan on: March 5th, 2008 at 1:18 pm
Chris - yes that is possible. But it would require doing it by hand as there isn’t anyway to automate this. Or at least not without a huge amount of work. So this will not be included in the plugin.
An easier and usually more preferred route, is to use graphics as a background to the actual menu text. This way your menu is indexable by bots and will resize appropriately on altering your text size.
An example of this can be seen on my new WordPress theme Aqua Vaccinium.
Zagaonline rss center » Blog Archive » Drop down plugin for Wordpress Pages on: March 5th, 2008 at 4:47 pm
[...] 6. 03. Im aware of drop down plugins for Wordpress posts http://ryanhellyer.net/2008/01/14/su…dpress-plugin/ [...]
Pinto on: March 6th, 2008 at 9:35 pm
Hi’
nice plugin, i have start to translate it into Hebrew works perfect.
one problem though it’s look bad really bad in explorer
i left it so you can see it.
scroll left you will see the menu why? how it can be fix?
in fire fox i see it perfect.
Thank,
Pinto.
Ryan on: March 7th, 2008 at 1:57 am
Pinto - Is it possible that the right to left text is messing it up? I’ve never tried/thought of doing that before.
I was about to have a go at fixing it for you, but I see you have removed it. If you would like help getting it to work I’ll need a link to an example of your problem occurring.
Daniel on: March 7th, 2008 at 11:48 am
Hi Ryan
I need to ask you a question, I would like to know IF it is possible to make the dropdown menues from “scratch” What I mean is that I want to have different names on the dropdowns than the Wordpress default, Pages, Catagories, Archive etc etc.
And below those I want to have my own submenus. Is this possible at all? I have been trying to understand how this works for some weeks now but I have to ask now.
I would need approx 5 different menues with my own selected “titles” with own selected sub menu items.
Hope to hear from you soon
Regards,
Daniel
Ryan on: March 7th, 2008 at 12:06 pm
Daniel - Yep, it’s definitely possible. In fact it’s not particularly difficult either. Below is an example of the code used to generate a menu with Tomato, Capsicum and Cucumber on the top level and Red, Green and Black options under the Tomato dropdown. You can add as many levels of navigation as you want, just make sure you follow the syntax for placing unordered lists (UL) inside the list item (LI) you want the dropdown/flyout to appear inside.
<ul id="suckerfishnav"><li><a href="">Tomato</a>
<ul>
<li><a href="">Red</a></li>
<li><a href="">Green</a></li>
<li><a href="">Black</a></li>
</ul>
</li>
<li><a href="">Capsicum</a></li>
<li><a href="">Cucumber</a></li>
</ul>
If you need any more help, just leave another comment and I’ll see what I can do.
Eric on: March 8th, 2008 at 12:36 pm
Fantastic plugin and great assistance here.
I have a page-only WP site, functioning as a CMS. Is there a way to make an item on the menu “non-linked”?
In other words, I’m trying to make sub-pages drop down under a main topic, but there would be no page defined for that main topic.
For instance, I’d have the word “Stuff” in the navigation bar, but clicking the word “Stuff” would not go anywhere. It would just list the sub pages under “Stuff”.
I hope this makes sense…. Thanks again.
Daniel on: March 8th, 2008 at 5:07 pm
Hi Ryan
Thanks for taking your time to write back. Your reply have helped me allot, It took a second to understand where to put the link to the page from that code but now Im “on my way there” I wait for your coming release!
Have a nice weekend
My project page is here
http://www.norstromfiske.se
Im currently learning how to publish to later use this together with a friend.
Regards
Daniel
Ryan on: March 8th, 2008 at 5:07 pm
Daniel - I like the look of your site so far. Perhaps you should try my new beta plugin though so that you can modify it easily to match your site.
The beta plugin is available here … http://ryanhellyer.net/2008/02/20/suckerfish-plugin-11-beta/
And you can generate the CSS for the dropdown here … http://ryanhellyer.net/dropdowns/
Ryan on: March 8th, 2008 at 5:13 pm
Thanks Eric.
You can’t make one of the WordPress generated menu items unlinked, but you can achieve the same effect by building the menu yourself from scratch like I showed Daniel below. Then instead of adding a link to the HREF, just leave it blank.
Eric on: March 9th, 2008 at 3:43 am
Ryan: In (two) words: You Rock!
Works perfectly using the code you offered for Daniel.
Thanks a ton.
Eric
Ryan on: March 9th, 2008 at 10:29 am
Eric - glad to hear it worked for you
Shane on: March 9th, 2008 at 5:04 pm
Gday Ryan,
Thanks very much for the plugin! After a bit of tweaking, it is working very nicely on my site.
If you’d like to add it to your list of examples, please feel free to do so!
http://www.advs.net.au/
Cheers,
Shane.
Ryan on: March 9th, 2008 at 5:56 pm
Thanks for the link Shane. I’ll add it right now.
I notice that you still have some of the original colouring from the default styling showing through in the dropdown. You may find the new dropdown generator useful if you want to iron some of those bugs out.
Shane on: March 9th, 2008 at 6:21 pm
Thanks Ryan.
For some reason, the sub menu is not aligning correctly in IE.
Any Ideas?
Daniel on: March 9th, 2008 at 7:54 pm
Hi Ryan
Thanks, I uploaded the new version and got it to work, but after i used the CSS page of yours it somehow changed my whole layout and even if i disable the plugin and tried your old one it is still gray all over and the font size is not as it should. Also i have noticed that in Firefox the meny looks like it should but in IE the menue is getting cut after the 3rd menu item. I dont understand why this happens, this happens even if i change theme.
the meny i have put together looks like this incl the “top part”
<?php suckerfish(); ?>
<ul id=”suckerfishnav”>
<script language=”JavaScript” src=”suckerfish_keyboard.js”></script>
<!–[if lte IE 6]>
<script language=”JavaScript” src=”suckerfish_ie.js”></script>
<![endif]–>
<li><a href=?page_id=18 “”>Välkommen</a>
<ul>
<li><a href=?page_id=27 “”>Heikki</a></li>
<li><a href=?page_id=28 “”>Fiskeskola</a></li>
</ul>
</li>
<li><a href=?page_id=2 “”>Var är gubben</a>
<ul>
<li><a href=?page_id=29 “”>Rapporter/Dagstips</a></li>
<li><a href=?page_id=30 “”>Filkmlipp</a></li>
<li><a href=?page_id=31 “”>Ljugarsidan</a></li>
</ul>
</li>
<li><a href=?page_id=32 “”>Kontakta mig</a>
<ul>
<li><a href=?page_id=33 “”>Just nu kontakt</a></li>
<li><a href=?page_id=34 “”>Prislista</a></li>
<li><a href=?page_id=35 “”>Bokning stugor</a></li>
<li><a href=?page_id=36 “”>Bokning Guidning</a></li>
<li><a href=?page_id=37 “”>Länkar</a></li>
</ul>
</li>
<li><a href=?page_id=38 “”>Bilder</a>
<ul>
<li><a href=?page_id=43 “”>Landskap och djur</a></li>
<li><a href=?page_id=45 “”>Nostalgi</a></li>
<li><a href=?page_id=39 “”>Vinter 08</a></li>
<li><a href=?page_id=44 “”>Natur/Fiske 08</a></li>
<li><a href=?page_id=45 “”>Arkiv 07</a></li>
<li><a href=?page_id=6 “”>Video</a></li>
<li><a href=?page_id=4 “”>Daniels bilder</a></li>
</ul>
</li>
I cant see any errors in the code I have put together and neither understand why it breaks, but I think that the colour and layout of the page have something to do with the break of the menu.
Sorry for my bad english in trying to explain my problem.
To clearafy the background shall be white as the default is and the text shall be as default as well.
Look forward for your comments.
Ryan on: March 9th, 2008 at 8:00 pm
Shane. The following looks very odd:
#suckerfishnav li:hover ul ul, #suckerfishnav li:hover ul ul ul, #suckerfishnav li.sfhover ul ul, #suckerfishnav li.sfhover ul ul ul {left:0px;}That is normally as -999em or similar.
The easiest way to fix these problems is to use the CSS generator page though. It should be able to weed out most of the bugs automatically and save the hassle of modifying it by hand.
Ryan on: March 9th, 2008 at 8:01 pm
Daniel - there are lots of problems in the code you have there. I need to go have dinner right now, but I’ll be back in an hour or so to help.
Ryan on: March 9th, 2008 at 9:02 pm
Hi Daniel.
“even if i disable the plugin and tried your old one it is still gray all over and the font size is not as it should.”
I don’t think this is caused by the plugin.
In the code you provided, you are using a whole bunch of code which you don’t need at all.
The plugin automatically adds the javascript so there is no need to add those to your HTML, I’m assuming you got those from the Dropdown Generator page, but I only posted them there for those who are NOT using the plugin.
If you are wanting to create your own custom designed menu then literally all you need is the unordered list which you have correct in your above HTML.
If you still find the menu isn’t look correct then let me know and I’ll see what I can do.
This has shown up an interesting problem I hadn’t thought of before. If non English language bloggers want to use the plugin, the titles of each dropdown (pages, categories, archives etc.) will be in English. Whereas I should probably be using some sort of WordPress function which will change depending on your language settings. I’ll try to fix that in a future version of the plugin.
Shane on: March 10th, 2008 at 12:00 am
Ryan,
I have used the generator and it aligns ok in firefox, however not in IE.
Any ideas why???
Ryan on: March 10th, 2008 at 11:04 am
Shane - I’m assuming there’s probably something in your themes style sheet which causing problems with the menu. I’m quite busy at the moment, but if I have time tonight I’ll take a look and see if I can find where the bug is.
Just to confirm: It did look correct in the generator?
Janet on: March 10th, 2008 at 8:51 pm
Interesting! I’m really helped. It’s really smart idea.
Roseba on: March 10th, 2008 at 11:36 pm
I’m currently building a website using the menu command for your plugin: php suckerfish(2).
Unfortunately, the page referencing that, and the other options for the plugin…. well I can’t find it anymore. Either my search is not yielding the results I wanted, or you updated your page.
Anyway, what I’m trying to do, is to find out how I can continue using this option, only I want to exclude certain pages from the top navigation. (I’m not sure if I have to get a different plugin for that all together.
Also, the link above for Online CSS generator is not working. It goes to http://dropdowns/
Ryan on: March 11th, 2008 at 12:51 am
Roseba - thanks for the heads up on the dead link. I’ve fixed it now.
The latest version of the plugin does not require to use suckerfish2() as you can control that functionality (and a whole lot more) via the admin panel with it. Hence I’ve removed it from this page. The current plugin only uses suckerfish(), however I’ve included support for the old functions to prevent users themes from breaking on upgrading, but some of the new features won’t be available without moving to suckerfish().
The latest version of the plugin doesn’t allow you to exclude pages from the admin panel anyway though so you will need to replace the < ?php suckerfish2(); ?> function in your theme anyway if you want to do that. The following code will remove pages with ID’s 5 and 3 from the dropdown (edit/add page ID numbers to suit):
<ul id="suckerfishnav"><li><a href="<?php bloginfo('url') ?>/">Home</a></li>
<?php wp_list_pages('title_li=exclude=5,3') ?>
</ul>
The above code will work with both version 1.0.5 (your current version - probably) and 1.6.1 (the latest). If you have any troubles then post back and I’ll see what I can do to help
I’d like to include support for excluding specific pages, categories etc. via the admin panel in the future but I’m still trying to figure out the best way to go about doing that. In the mean time, feel free to bug me for custom codes or build the menu up the old fashioned way with HTML as per my advice to Daniel a few comments back.
Brit on: March 11th, 2008 at 9:24 pm
I love this newer version, thank you for updating!
I have a question however. Is this dropdown menu SEO friendly? Is it css based or javascript based? I heard css dropdown menus are ok but javascript menus do not get indexed by search engines.
Thanks
Ryan on: March 11th, 2008 at 10:17 pm
Brit - The dropdown menu is very SEO friendly. The Son of Suckerfish method which this plugin uses is pretty much the king of SEO friendly dropdown navigation.
From a search engines perspective, these dropdown menus aren’t terribly dissimilar from the average WordPress sidebar, albeit many sidebars feature heading tags which may offer a little (negligible?) SEO benefits.
The plugin does use Javascript, but that has no effect on the SEO properties of the menu, as it is only used to trigger the dropdowns in very old browsers like IE6. I also put the Javascript into IE conditional comments so that only those old browsers even need to bother downloading the teeny bit of Javascript that they need.
I’ve been looking at ways to add more Javascript features to the dropdown this evening, including fancy graphical effects like fading, delays etc. But none of these new features (which would be optional) would have any effect on the SEO friendliness of the menu either as they are simply additions to the existing unordered list which contains the menu options.
Brit on: March 12th, 2008 at 8:22 am
Thanks for clarifying this, glad to hear!
Again thank you for making this so easy for us.I really appreciate it and i suggest this plugin to everyone,it rocks!
Andy Turner on: March 12th, 2008 at 3:09 pm
Hi Ryan, just to let you know that I’m using your great dropdown menu on our community site at:
http://shoalhavenheads.net.au
and if you’d like to put a link up to us it would sure help the traffic!
I havn’t upgraded to the new version yet - I’m not sure what version I have, downloaded it in Feb this year - any problem with retaining the version I use or is there any security problems?
I’m a kiwi now living in Aus (from Auckland). Bet you are enjoying living in Dunedin, a great part of the world!
All the best and thanks for the dropdown menu,
Andy Turner
Ryan on: March 12th, 2008 at 3:11 pm
Andy Turner - There is no security risk with using the old version, the new just has a whole heap of extra bits. You can just overwrite your existing plugin with the new one though and it should function just the same except you will have a whole bunch more options in the admin panel. Although you would need to transfer the CSS data from the original version over to the new one - it’s entered in via the admin panel.
You are now the second Kiwi I know of who is using my plugin
I will add your link to my list of live examples shortly.
Ryan on: March 12th, 2008 at 10:34 pm
For anyone who is interested, my development blog features some new animated effects which I’m planning to include as an option in the plugin during the next release … Development Blog
Nicole on: March 13th, 2008 at 12:00 pm
Hello Ryan,
I am using version 1.6.1 of your plugin and have a small problem that I hope you can assist me with. I also apologize if this has been answered before but searched and did not see it.
I currently have a specific page titled ‘Home’ which is set to be my main front page. I am having trouble figuring out how to set up the menu so that ‘Home’ appears as the first link and though its a bit confusing I’ll try to explain.
When I go into your plugin options and set menu item #1 to pages it does include the ‘Home’ page in the list of page links but since it lists pages alphabetically it lists the ‘Home’ page second after the page named ‘FAQ’ (for example FAQ | Home | Services ). If I set it up so menu item #1 to ‘Home’ and menu item #2 to pages then I get two listings of the ‘Home’ page link (for example ( Home | FAQ | Home | Services ). What I am trying to set up is just so I can get: Home | Page link | Page link | Etc. Thank you in advance for any help and of course for the awesome plugin!
Ryan on: March 13th, 2008 at 12:45 pm
Nicole - thanks, that is a bug I hadn’t heard about before.
I’ll fix that in a future release. In the mean time, replace <?php suckerfish(); ?> with the following code:
<?php echo '
<ul id="suckerfishnav">
<li><a href="http://domain.com/home/“>Home</a></li>
‘ , wp_list_pages(’title_li=&exclude=5‘) , ‘
</ul>’;
?>
The domain.com/home/ will need to be changed to whatever your Home URL is and the number of 5 will need to change to whatever the WordPress ID number of your home page is.
Ryan on: March 13th, 2008 at 7:10 pm
Nicole - I had a sudden thought! All you need to do is to not use the home page option at all, and just manipulate the order of the pages via WordPress’s built in page order tool.
If you edit a page, the page order tool is on the right handside, near the bottom.
Ryan on: March 13th, 2008 at 9:17 pm
A new beta version is available which features the animated dropdowns I mentioned a few comments ago … Dropdown plugin beta
Nicole on: March 14th, 2008 at 4:27 am
Thank you so much Ryan for the quick replies. I will try your suggestion(s) and see if I can get it to work. I will also check out the new beta you released, its very exciting!
Karynn on: March 14th, 2008 at 8:17 am
I thought I used this plugin in the past and there were several configuration options for what was included in the navigation menu. i.e. some included pages and categories, some only showed pages, others had a link to blog, etc… but I don’t see any options in yours at all — YET the live examples are indeed showing more than just the default shows. Are they all doing hacks like your response to Nicole?? Or am I confusing your plugin with a different one?
westy on: March 14th, 2008 at 10:52 am
Outstanding work - in many ways!
But… all the .css styling goes away when I change my permalink structure to anything but the default. Any thoughts? I tried calling in the attributes via a separate menus.css file - but that did not have any effect.
westy on: March 14th, 2008 at 10:55 am
I am sorry - it now works by using your awesome .css generator; but I had to call it in via it’s own .css file, not from the suckerfish options panel.
Please keep up the outstanding work!
Ryan on: March 14th, 2008 at 11:53 am
Karynn - you definitely have the correct plugin. However I assume you are using an older version of the plugin which does not have the options in the admin panel to control what is on the page.
You can either upgrade to the new plugin, or keep using the old one. The content of the dropdowns can be partially controlled by altering the function used in your theme.
The old options are:
suckerfish();- same as currentsuckerfish1();suckerfish2();suckerfish3();suckerfish4();suckerfish5();Ryan on: March 14th, 2008 at 11:55 am
Westy - I don’t understand that at all. The plugin shouldn’t be bothered at all by changing the permalink structure.
I’ll test it to see, but I’m 99.99999% certain I won’t be able to replicate that problem.
Ryan on: March 14th, 2008 at 11:57 am
Westy - Confirmed. I changed the permalink structure on the demo page and it is still functioning as per normal apart from the permalinks changing.
I suspect something else has gone wrong, unrelated to your permalinks. If you can prove me wrong please do though!
DanielRiem on: March 15th, 2008 at 4:06 am
hey ryan. thanks for the plugin. its been a great addition to the site. quick question. i have a flash video at the top of my site. but the drop down menu always hides behind it. any way to fix that?
thanks dude.
http://www.storiesof.us
Bartek on: March 15th, 2008 at 4:44 am
Hey man,
First of all, fantastic plugin dude! =]
And secondly, I noticed you’d like to see examples of people using it in a live environment so here’s our blog:
http://www.bmkphotography.com/blog
Cheers!
Bartek
Ryan on: March 15th, 2008 at 5:02 am
DanielRiem - I’ll see what I can do about the hover over flash problem and will be back shortly with news on that front.
Unrelated issue: You have an improperly closed favicon link between your head tags.
Ryan on: March 15th, 2008 at 5:14 am
DanielRiem - Sorry, but I can’t figure out any way to stop the menu from displaying underneath the flash video. It doesn’t seem to happen with some video players though, so perhaps try another one.
Phil on: March 15th, 2008 at 6:47 am
Quick hack to allow for drop downs to be visable above overlapping div tags.
Add to either theme stylesheet or suckerfish
#suckerfishnav li ul { z-index:1}
Quality plugin keep up the great work.
Ryan on: March 15th, 2008 at 9:58 am
Thanks Phil.
What exactly is that correcting though? I thought it was going to fix the problem of the dropdowns not displaying over the top of relatively position block elements, but I tried it and it didn’t correct that problem.
Ryan on: March 15th, 2008 at 10:02 am
Bartek - Thanks! Your link has now been added to the list.
Scot on: March 15th, 2008 at 12:52 pm
Ryan
Great plugin…wondering if there is a way to have the pages sorted some way other than alphabetically? Unless I’m wrong, the plugin displays the links vertically in alphabetical order. It would be nice to adjust somehow, perhaps via the page order option in Wordpress?
Thx
Scot on: March 15th, 2008 at 1:21 pm
Ryan
Wondering if there is a way to display pages vertically other than alphabetically?
Ryan on: March 15th, 2008 at 2:33 pm
Scott - Yep, the built in page order feature in WordPress can control the order of the menu items.
If this isn’t working for you then let me know and I’ll look into it.
Paul on: March 15th, 2008 at 3:25 pm
Scot - check out sorting options directly through the wordpress tags - http://codex.wordpress.org/Template_Tags/wp_list_pages
Ryan - Is there any way to have the sub-menu items ( li ul ul etc) appear to the left as opposed to the right? My menu is floating on the right side of my page and I would like the dropdown list’s sub-pages to be visible.
I understand that the default list sub-element indent is to the right, and Sukerfish depends on the wordpress tags. I tried setting the wp_list_pages depth to -1 and then reversing your css (left:-999em and left:auto) but I don’t really know what I’m doing and was just hoping that there is a way to do this. Perhaps using CSS to override the default-right-indent.
Any help would be greatly appreciated. I love this plugin!
Just to note, I am using the 1.02 version for specific reasons.
Thanks!
Ryan on: March 15th, 2008 at 5:23 pm
Paul - I’m sure that is possible, but the last time I tried I made a big mess of it and gave up.
I’ll get back to that at another time though and sort out a proper fix for it. It is something I would like to include in the generator at some stage.
What ’specific reason’ do you have for using version 1.02? Speed? In theory it will run slightly quicker than the newer one, but the difference should be pretty negligible.
wordpress dropdown menu plugin « Graphic Design Blog on: May 10th, 2008 at 12:11 pm
[...] wordpress dropdown menu plugin Posted May 10, 2008 WordPress Dropdown Menu Plugin [...]
wordpress dropdown menu plugin « Graphic Design Blog on: May 10th, 2008 at 12:11 pm
[...] wordpress dropdown menu plugin Posted May 10, 2008 WordPress Dropdown Menu Plugin [...]
Easy neat way to add stylish CSS Cascading menus to your blog on: May 20th, 2008 at 6:04 am
[...] Wordpress Dropdown Plugin [...]
Banah Ministries Website Re-Design on: May 24th, 2008 at 4:50 pm
[...] were utilised to organise the content, which allowed me to use Ryans Suckerfish DropDown Plugin to aid navigation as you would in a traditional web [...]
Widgets and Plugins - Page 2 - DIY Themes Forums on: May 27th, 2008 at 4:32 pm
[...] the subpages. It is beautifully represented at IberiaNature.com. I found a plugin that does this: Suckerfish Dropdown Menu plugin. (And also a new beta version.) I’m experimenting with it now, and hope to figure out how to make [...]
Suckerfish dropdown menü kullanan var mı? | Oyun İndir Rss Haber r10.net Oyunhayali.com Mp3 oyun film+ 18 Oyunlar Filmler on: May 30th, 2008 at 3:17 pm
[...] WordPress Dropdown Menu Plugin | PixoPoint [...]
Multi-level Navigation Plugin for WordPress | PixoPoint on: June 1st, 2008 at 11:55 pm
[...] Dropdown Menu Generator and WordPress dropdown menu plugin are used by many professional web designers to create high quality navigation [...]
Multi-level Navigation CSS Generator | PixoPoint on: June 2nd, 2008 at 2:59 am
[...] Dropdown Menu Generator and WordPress dropdown menu plugin are used by many professional web designers to create high quality navigation [...]
hubionmac.com » Blog: Neues Design on: August 23rd, 2008 at 5:33 pm
[...] Diese Plug-In liefert die Navigations-Leiste im Header, mit ein paar schönen Drop-Down Menüs. Es lässt sich einfach anpassen und mit einem Simplen Befehl in existierende Sites einbinden. [...]
Çoklu menü eklentisi | Fırtına 30 05 on: September 12th, 2008 at 10:56 am
[...] Eklentinin sayfası burası ve burası. [...]
Drop-down menu - DIY Themes Forums on: September 14th, 2008 at 5:21 pm
[...] been working with the Multi-Level-Navigation plugin, and while it can be tweaked to look quite nice with Thesis, if I use the custom.css file [...]
Bloc de Notes » Blog Archive » Drop Down Menus Generator on: October 22nd, 2008 at 2:33 am
[...] plugin_download: http://pixopoint.com/suckerfish-wordpress-plugin/ [...]
Javier Seixas | Blog » Blog Archive » Menú desplegable en Wordpress on: October 27th, 2008 at 4:13 am
[...] plugin se llama Suckerfish Wordpress Dropdown Menu. Es muy interesante porque permite editar hasta 6 tipus de submenús diferentes: llamando a [...]
Blog Profesional » Blog Archive » Menú desplegable en Wordpress on: November 12th, 2008 at 11:36 am
[...] plugin se llama Suckerfish Wordpress Dropdown Menu. Es muy interesante porque permite editar hasta 6 tipus de submenús diferentes: llamando a [...]
Menús desplegables en la cabecera de WordPress | El Blog de Alex Borrás on: January 20th, 2009 at 7:26 am
[...] Suckerfish WordPress Plugin [...]
Suckerfish WordPress Plugin | El Blog de Alex Borrás on: January 20th, 2009 at 10:48 am
[...] Suckerfish WordPress Plugin [...]
Drop down Menus for Wordpress CMS - Plugins reviewed | Macronimous Web Blog on: January 30th, 2009 at 6:18 am
[...] Discussed below are four drop down plug-ins, for sites enabled with Wordpress. 1. Suckerfish Wordpress Plug-in: It can be downloaded from here. Suckerfish has already existing drop down design, but the same can [...]
Drop down Menus for Wordpress CMS - Plugins reviewed | Designurimagination Blog - Let Your Imagination Fly on: April 26th, 2009 at 12:04 pm
[...] Discussed below are four drop down plug-ins, for sites enabled with Wordpress. 1. Suckerfish Wordpress Plug-in: It can be downloaded from here. Suckerfish has already existing drop down design, but the same can [...]