Support » Themes and Templates » Twenty-eleven Child Theme Drop Downs

  • Resolved aquaThistle

    (@aquathistle)


    I am trying to add a drop down menu to my child theme for twenty-eleven. While looking through the code everything looks right (and the pages are children, and nested correctly in the menu widget), nothing pops down at all. I have never used the drop down menu option in WordPress before, and I’m not getting a lot of help scrolling through the forums here, so hopefully someone could help with my specific problem.

    My client’s site is located here: http://www.air-comfort-company.com/

    For the moment, About Us is the only menu item that should have a couple of drop down links.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    It looks like your drop-down functionality is completely missing.
    Try adding this to your Child Theme stylesheet;

    #access li {
     position: relative;
    }
    
    #access li:hover ul {
     display:block;
    }
    
    #access li ul {
     display: none;
     position: absolute;
     top: 10px;
     left: 0;
    }

    Thank you! I thought it was supposed to inherit anything I didn’t adjust, but for some reason has not. Anyway, that addition worked and now I just need to make a couple of formatting adjustments. Thanks!

    It’s not completely important, but for some reason the drop down is running a bit to the right of the link above it. Any ideas of how to budge it directly under?

    Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    Sure, amend my last snippet of code to this;

    #access li ul {
     display: none;
     position: absolute;
     top: 10px;
     left: 0;
     margin-left: 0;
    }

    And thank you again! Not sure what in the code makes it go to the right without the margin left, but thanks for that idea. Works great!

    Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    And thank you for contributing to the WordPress community 🙂
    I’m sorry your Child Theme didn’t inherit the drop-down menu functionality.

    Probably a glitch in my own code somewhere along the way, but thanks for helping me figure that out!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Twenty-eleven Child Theme Drop Downs’ is closed to new replies.