Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • improvid Friend
    #1077813

    Hi,

    I have made a onepage layout. I would like the mobile menu to close automatically after I click on a menu item which goes to an anchor. How can i achieve this?

    Update:
    I fixed it by adding this jQuery code. I am no expert so Is it the correct way of doing this?

    <script type="text/javascript">
    $(function() {
        $("ul.nav li a").click(function() {
            $(".in").removeClass("in");
        });
    });&lt;/script&gt;
    • This topic was modified 6 years, 5 months ago by  improvid.
    Saguaros Moderator
    #1077943

    Hi,

    Glad you to hear you figured it out!

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 1 reply, has 2 voices, and was last updated by  Saguaros 6 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum