Skip to main content

Forums

This topic contains 4 replies, has 4 voices, and was last updated by  chris_2080 10 months, 1 week ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #271028

    developer
    Participant

    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.

    #271029

    developer
    Participant

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

    Thank You.

    #271031

    Beverleyh
    Participant

    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.

    #271034

    HazJ
    Participant

    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.

    #271121

    chris_2080
    Participant

    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-link icon-logo-star icon-search icon-star