WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Twenty-eleven Child Theme Drop Downs (8 posts)

  1. aquaThistle
    Member
    Posted 1 year ago #

    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.

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    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;
    }
  3. aquaThistle
    Member
    Posted 1 year ago #

    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!

  4. aquaThistle
    Member
    Posted 1 year ago #

    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?

  5. Andrew
    Forum Moderator
    Posted 1 year ago #

    Sure, amend my last snippet of code to this;

    #access li ul {
     display: none;
     position: absolute;
     top: 10px;
     left: 0;
     margin-left: 0;
    }
  6. aquaThistle
    Member
    Posted 1 year ago #

    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!

  7. Andrew
    Forum Moderator
    Posted 1 year ago #

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

  8. aquaThistle
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic