[Resolved] Sub-Menu Fly Out Left Not Working Anymore

Home Forums Support [Resolved] Sub-Menu Fly Out Left Not Working Anymore

Home Forums Support Sub-Menu Fly Out Left Not Working Anymore

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1285008
    Mary Pearson

    I used the custom CSS code from Tom’s Docs with “open-left” custom class for Sub-Menu item “About Orly -> Media”. It has been working until tonight (that I first noticed). Now it isn’t working. I’ve double-checked everything, tried it with other sub-menu items, but nothing works.

    I deactivated all plugins and removed all other css, but nothing changes.

    Would appreciate your input.

    Thank you.

    #1285013
    Leo
    Staff
    Customer Support

    Hi there,

    I’m not seeing open-left class for that menu item:
    https://www.screencast.com/t/rHSSFPh7hD

    Can you double check?

    #1285016
    Mary Pearson

    Yes it is there. Please see screenshot.

    View post on imgur.com

    #1285241
    David
    Staff
    Customer Support

    Hi there,

    Do you have any plugins or functions that affect the Menu output? i am seeing an additional attribute data-wahfont="16" being added to the menu item anchors – wonder if the cause of that is affecting the additional class being added.

    #1285632
    Mary Pearson

    The source of that attribute is WP Accessibility Helper. I had originally deactivated all plugins before submitting this post, but I just deactivated again and it doesn’t make a difference.

    #1286496
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    That code isn’t designed to work with sub-menus.

    You could try this:

    .dropdown-hover .main-navigation:not(.toggled) ul ul li.open-left:hover>ul {
        left: auto;
        right: 100%;
    }
    
    .sub-menu li.open-left > a > .dropdown-menu-toggle:before {
        transform: rotate(180deg);
    }
    #1286498
    Mary Pearson

    That works perfectly!!!!

    Many thanks Tom!

    #1286501
    Mary Pearson

    Oops. Sorry Tom. I just wanted it for the one sub-menu called Media, not for all of them.

    #1286530
    Tom
    Lead Developer
    Lead Developer

    It should only apply to menu items with that open-left class.

    The other one opening to left has the same class.

    #1286555
    Mary Pearson

    Yes you are quite right Tom. I’d forgotten that I’d moved one of the items. All is good.

    Many thanks and much appreciated!!!

    #1287564
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

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