Forums

Give help. Get help.

  • # May 14, 2018 at 3:07 am

    I have developed this site: http://bellamedica.co.uk/dev/

    The problem I have is the sub-menu doesnt seem to work. When I try to click on treatments to open the sub-menu it goes on the page instead. Any help would be greatly appreciated.

    Thank You.

    # May 14, 2018 at 3:16 am

    I am not asking for the code but just some help on what to do.

    Thank You.

    # May 14, 2018 at 6:13 am

    Can you put the menu in a reduced CodePen demo? It’s easier for us to look at there and test/edit code on the fly.

    # May 14, 2018 at 7:33 am

    It does work but it is forcing close right after you click it. As Beverleyh said. If you put it in CodePen, we can take a better look.

    # May 15, 2018 at 1:37 am

    try this

    $( document ).ready(function() {
        var linkPart = window.location.href.substring(window.location.href.lastIndexOf('/') + 1);
        console.log(linkPart);
        $('a[href="'+linkPart+'"]').next('ul').toggleClass("show-ul");
    });
    
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag