WordPress.org

Ready to get started?Download WordPress

Forums

Drop down menu staying put (4 posts)

  1. Wild at Art Atelier
    Member
    Posted 1 year ago #

    I have created a horizontal drop down menu and would like to know if it is possible to have it stay put when the visitor is on the page. My website is test.wildatartatelier.com.
    To explain better what I mean maybe I say exactly what I want on the site. So i would like the drop down menu to stay put when the visitor is on the "Shop" page and when the visitor goes to other pages like "home" or "contact" that it hides itself.
    Could anyone help me?

  2. ronangelo
    Member
    Posted 1 year ago #

    Try this. If the current menu item has a sub-menu then it should display.

    #access .current-menu-item > .sub-menu {
        display: block !important;
    }

    I notice the sub-menu doesn't extend to the full width. I think it looks better if it does.

    #access .sub-menu {
        background-color: #FFF;
        width: 100%;
    }
  3. Wild at Art Atelier
    Member
    Posted 1 year ago #

    Thanks that did it you are awesome!!!

  4. Wild at Art Atelier
    Member
    Posted 1 year ago #

    Sorry just noticed that it works great when I am on the page site but once I click on a category it doesn't stay anymore....

Topic Closed

This topic has been closed to new replies.

About this Topic