WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Drop down menu hover (10 posts)

  1. passegua
    Member
    Posted 1 year ago #

    I've read this closed Topic:
    http://wordpress.org/support/topic/menu-help-drop-down-links-parentchild-pages-custom-menu?replies=13

    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
    Forum Moderator
    Posted 1 year 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
    Member
    Posted 1 year ago #

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

  4. passegua
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Forum Moderator
    Posted 1 year ago #

    Passegua,

    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
    Member
    Posted 1 year 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
    Forum Moderator
    Posted 1 year 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
    Member
    Posted 1 year 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 1 year 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