• fokjulle

    (@fokjulle)


    No, I’m not talking about a ‘folding’ menu. What I want to know is whether or not it is possible to create a dynamic type drop-down menu for main navigation.

    For example, the menu is:

    ABOUT | STUFF | MORE STUFF | CONTACT

    On rolling over any of those, how does one create a sub-menu that drops down, which includes more pages.

    This is to keep a complex navigation simple and clean.

Viewing 15 replies - 16 through 30 (of 30 total)
  • muskokee

    (@muskokee)

    Sure. I understand about modification frustrations. They just have to be sorted out!

    Here is another option that works well if you only want pages (and no categories) in your menu:

    https://www.InvokeMedia.com

    It does require a hack to the core code (see step 6 at the bottom of the page — the file they reference has changed to wp-includes/post-template.php), so it won’t be the right solution for everyone.

    You can add a little more control over your menu with this plugin from Garrett Murphy too.

    Rok

    (@rok)

    Check, son of suckerfish menu, head over to my blog here

    sfong15

    (@sfong15)

    Just tried the webdezine menu there are couples of issues

    There is a missing close bracket at line 198, fixed, a step forward.

    I put just `<?php
    webdezine_list_cats();
    ?>` as a quick test and I got this

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘->categories order by category_parent, cat_name’ at line 1]
    select category_parent, category_count, cat_name, cat_ID from $wpdb->categories order by category_parent, cat_name

    By the way I put the require statement within body tag, guess this is OK. CSS required is appended to the existing CSS file so referencing is not a problem in my case.

    In my template I have only this for a quick test

    <div class="menucont">
    <div class="topmenu">
    <?php webdezine_list_cats(); ?>
    </div>
    </div>

    Am I missing anything?

    muskokee

    (@muskokee)

    Hi sfong15,

    Sorry about the errors. I have fixed them and will post the next version just as soon as bluehost gets their act together. It’s soon time to give another host my business. In my own menu I called the tables directly rather than going through wordpresses $wpdb-> , so I didn’t have a chance to debug those queries. Done now. Give about an hour before I get the new file uploaded.

    Will also amend the PHP4 version

    muskokee

    (@muskokee)

    OK, new files uploaded! and available from webdezine wordpress menu v1.1

    Mushokee, Will your drop down menu work for an RSS Feed. For example, if I wanted to have a drop down menu that listed a handful of titles imported from a feed, would that work?

    not right now. i have had a suggestion to allow user entered links and it is on the table for the the next version.

    Arrrgh! This is exactly what I’m looking for and muskokee’s site is “in transition”!

    Anyone have another link for this?

    Thanks

    delete

    (@twofivethreetwo)

    I would also be interested in the files linked above if anybody has them.

    Here’s a pretty good SEF (search engine friendly) dropdown menu that I used on this client’s site https://www.FreshTracksTransportation.com recently. You can download the menu here: https://www.jillij.com/category/website-related/ (just scroll down ’till you see “Jillij theme version 11).

    The only problem with this menu is that you can’t click the main links at the top of the dropdown menu, only within the dropdown menu, if that makes any sense. If you check out the site above, you should see what I’m talking about. I’m using version 9 of this dropdown menu, however, the menu author recently launched version 11 so hopefully the aforementioned issue isn’t, uhhh, an issue any longer. In any case, it’s a cool looking dropdown menu in Firefox.

    Good luck.

    JHouse – FYI, that menu breaks in Safari.

    I’m a big fan of this menu as it seems to work in all browsers.

    https://www.projectseven.com/tutorials/navigation/auto_hide/index.htm

    So far I haven’t found a viable solution for someone who doesn’t know php. However, I did find muskokee’s solution on someone else’s site, since it seem muskokee’s site is still “in transition” (be sure to look at the attachment at the bottom of the page).

    https://www.thanhsiang.org/faqing/node/58

    Unfortunately, I’ve tried this solution and get some db errors. Since I am a lowly marketer and not a programmer it’s all greek to me.

    Anyone aware of plugin that doesn’t require me hacking or knowing php?

    Incorporating a dropdown menu into a WP theme seems to be a frequent request/desire, and with good cause. I’m still working on this myself, so don’t have a full solution to offer except that there seems to be hope with the NAVT navigation menu plugin because it generates nested unordered lists for the custom menu group(s) you create. On this basis you can then customize CSS for those unordered lists and get dropdown menus. I was initially hoping for a less complicated solution, but after having discovered that the Kubrick Tabs Theme plus dTabs led to buggy/unpredictable display results, i decided to rebuild from scratch using the K2 theme (great!) plus NAVT (also great). This combo looks like it will work, but I’m still working through it all… if anybody has any tips here, they would be much appreciated! My goal is: tab based menus where the active main tab stays highlighted when you are on a sub-page of that section and where dropdown menus show up when hovering over any of the tabs that have sub-pages assigned to them…

    I made a plugin for creating dropdown menus in WordPress a few weeks ago … https://ryanhellyer.net/2008/01/14/suckerfish-wordpress-plugin/

    It uses the Son of Suckerfish method, so is very SEO friendly. It is easy to install and only requires a minor edit to your theme to get it working.

    I’m also working on a system for allowing you to change the colour scheme from within the admin panel – currently you need to edit the CSS file to alter the look of it.

Viewing 15 replies - 16 through 30 (of 30 total)
  • The topic ‘Dynamic drop-down menu.’ is closed to new replies.