The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] Drop down menu hover (10 posts)

  1. passegua
    Posted 3 years ago #

    I've read this closed Topic:

    and I learned that changing this:
    <?php wp_list_pages('title_li=0&depth=1'); ?>
    to this:
    <?php wp_list_pages('title_li=0&depth=2'); ?>
    will show child pages into my header menu, but not the drop down.

    Since my current theme does not natively support menus,
    I'd like to understand how to make drop down menus using css.

    Many thanks if you could help me.

  2. Andrew Nevins
    Forum moderator
    Posted 3 years ago #

    Have a look at how the default WordPress themes manage it (Twenty Ten & Twenty Eleven), use a tutorial or try a drop down CSS generator.

  3. passegua
    Posted 3 years ago #

    Ok, I'll have a try, even if I'm totally ignorant about php coding.

  4. passegua
    Posted 3 years ago #

    I've read both but I didn't understand a single word.
    How could I build a drop-down menu?
    Where do I put the CSS drop-menu lines?
    In which part of css file I should add:
    <?php wp_list_pages('title_li=0&depth=2'); ?>
    Anyhow, thanks.

  5. passegua
    Posted 3 years ago #

    I could create a CSS for drop-down menu using "Drop down CSS generator"
    I download the file and then?
    Where shoud I put those lines? Just merge with the existing style.css in my theme?
    How could I put the drop-down menu where ever I want?
    I'd like to substitute <?php wp_list_pages('title_li=0&depth=2'); ?>
    wiht a drop down menu so should I change also header.php?

    As you see I have many questions, please help me if you can.
    Many thanks.

  6. Andrew Nevins
    Forum moderator
    Posted 3 years ago #


    I think what would be easiest for you, is to download a Custom CSS Manager plugin, then enter your CSS in there, as opposed to creating a Child Theme.

  7. passegua
    Posted 3 years ago #

    Thanks Andrew,
    I like easiest things.
    I already have a Custom CSS plugin, is that one that comes within Jetpack.

    So what should I put into it? The whole new CSS automatically generated?
    How could my wordpress theme knows where the drop down menu must be?

    Thanks again

  8. Andrew Nevins
    Forum moderator
    Posted 3 years ago #

    You can use Firefox's add-on Firebug or Google Chrome's Inspect element feature, to find the HTML structure of your page and the CSS selectors to apply to.

    Once you know the CSS selectors, use the styles from whichever resource you're following (tutorial, generator etc.) into your Custom CSS plugin area. WordPress will then figure out which elements to apply your drop-down to.

  9. passegua
    Posted 3 years ago #

    I gave up this issue since I've found a new theme supporting drop down menu and much more.
    This theme is suffusion and I like it very much.
    Many thanks anyway for what I've learnt from your suggestions.

  10. esmi
    Forum Moderator
    Posted 3 years ago #

    Good choice. Suffusion is an excellent theme with very good support.

Topic Closed

This topic has been closed to new replies.

About this Topic