• Resolved rhaims

    (@rhaims01)


    Hello,
    Im trying to customize my navigation to the links have an “Overline” I found the css below (https://www.elegantthemes.com/blog/divi-resources/beautiful-css-hover-effects-you-can-add-to-your-divi-menus) and tried adding to custom styling tab but I cant seem to get it working. I know the css ids are not correct, but I cant figure which ones to use to make this happen. The below code is actually for an underline but I intend to adjust the positioning as soon as I can figure how to get this working.

    Any info pointing me in the right direction would be greatly appreciated. Thank You in advance.

    #top-menu .current-menu-item a::before,
    #top-menu .current_page_item a::before {
    content: “”;
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    }
    #top-menu li a:before {
    content: “”;
    position: absolute;
    z-index: -2;
    left: 0;
    right: 100%;
    bottom: 50%;
    background: #15bf86; /*** COLOR OF THE LINE ***/
    height: 3px; /*** THICKNESS OF THE LINE ***/
    -webkit-transition-property: right;
    transition-property: right;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
    }
    #top-menu li a:hover {
    opacity: 1 !important;
    }
    #top-menu li a:hover:before {
    right: 0;
    }
    #top-menu li li a:before {
    bottom: 10%;
    }

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author megamenu

    (@megamenu)

    Hi rhaims,

    The instructions you’ve linked to are specific to Divi menus, not MMM.

    It will be a big/difficult task to get it working with MMM, and I’m not even sure if it will work because it’s using :before and :after elements, but those elements are “reserved” in MMM for the menu item icons and sub menu indicator arrows.

    If you want to try, you’ll need to use developer tools to work out the correct selectors for your menu:

    https://developer.chrome.com/devtools

    Regards,
    Tom

    Thread Starter rhaims

    (@rhaims01)

    YEs I know its specific to divi menus but I was hoping you would be able to point me to the correct selectors. I had tried developer tools but could not find the correct selectors. That was basically my question.

    Im guessing its not possible because the :before and :after elements are “reserved. Im guessing there is no way to overright that..

    Thank You

    Plugin Author megamenu

    (@megamenu)

    Hi rhaims,

    “Im guessing its not possible because the :before and :after elements are “reserved. Im guessing there is no way to overright that..”

    It’s not impossible, but it would be very complex (even for me as the person who wrote the menu CSS), so it’s a level of custom CSS I don’t support here sorry. If you definitely need it then I’d suggest finding and paying a freelancer for a few hours of their time.

    Regards,
    Tom

    Thread Starter rhaims

    (@rhaims01)

    ty

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom Styling Links’ is closed to new replies.