Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #330700

    I’m using a sidebar menu just like your new photography theme demo. I have a few pages in a sub menu that I would like always displayed.

    My menu structure is as follows:

    Portfolio
    Music
    People
    Travel

    Is there a way to always display these sub menu items instead of the current ‘fly out’ method when I click on the parent menu item (portfolio)?

    #331324

    Hi jeffharris!

    Thank you for using Enfold.

    You can use this on Quick CSS or custom.css:

    ul.sub-menu {
    position: relative !important;
    left: 20px !important;
    opacity: 1 !important;
    visibility: visible !important;
    }

    Use google inspector or firebug to change the look of the sub menu.

    Regards,
    Ismael

    #331633

    Thanks Ismael. That accomplished what I wanted to display the sub menu. I used google inspector to look at the formatting of the rest of the elements, but that ended up being a little over my head. I tried a few different things, but couldn’t figure out how to style the sub menu the way I wanted. If you could help me, that would be greatly appreciated.

    – How to I remove the left and right border on the sub menu?
    – How do I make the bottom border the same length as all the other menu borders (currently it’s indented with the sub menu)?
    – How do I add additional padding below the bottom border so that the spacing is consistent with the other menu items?
    – How to I remove the hover color (currently the sub menu item/box turns gray when you hover over it)?

    I’ve left this in place on my site so that you can see what I’m talking about: http://jeffharrisphoto.net

    Thanks for your help!

    #332874

    Hi!

    Try with this code:

    ul.sub-menu {
        position: relative !important;
        left: 0px !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 10000;
        box-shadow: none !important;
        border-bottom: 1px solid #e1e1e1;
        width: 100%;
    }
    .sub-menu li, .sub-menu li a{
        float: none !important;
        display: block !important;
    }
    .sub-menu a{
        background: transparent !important;
        border: 0 !important;
    }

    Regards,
    Josue

    #333395

    That worked great!!! Thanks so much Josue.

    One follow up question. Is there a way to reduce the spacing/padding between the sub menu items, but still leave the padding the same after the last sub menu item in the list? I’ve implemented your code so you can see it in action on my site. I’m hoping to reduce the padding between ‘music’ and ‘people’ along with any additional sub menu items I may add down the road.

    Thanks again for your help!

    Jeff
    http://jeffharrisphoto.net

    #333424

    Hey!

    Try adding this:

    .sub-menu a{
        padding: 5px 8px !important;
    }

    Adjust as needed, first value (5px) is top & bottom padding, second value (8px) is left & right padding.

    Cheers!
    Josue

    #333465

    Awesome! Thanks Josue!

    #333499

    You are welcome, glad to help :)

    Regards,
    Josue

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.