How Navigation menu on desktop and mobile works

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kitdang
    Mivite


    • Jan 2009
    • 406

    #1

    How Navigation menu on desktop and mobile works

    I went and tinker with the main navigation yesterday. This causes my level-2 on the mobile menu to go blank. The desktop version look fine. After looking through the code, my navigation-set has been hide

    Code:
    <ul id="js-navigation-set" class="navigation-set horizontal-mega-menu hide">
    but I don't see it create a new ul tag with the class name 'clone'

    Code:
    <ul class="clone">
    Is there something I am missing that helped trigger the clone class?
  • Matt Zimmermann
    Mega Mivite










    • Apr 2008
    • 2482

    #2
    Re: How Navigation menu on desktop and mobile works

    @kitdang - The cloning of the navigation is handled through JavaScript. Can you post a link to the site in question?
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment

    • kitdang
      Mivite


      • Jan 2009
      • 406

      #3
      Re: How Navigation menu on desktop and mobile works

      Hi Matt,

      Sorry, didnt' want to post the link since it's still under development. However, I did private message you on the link.

      Thanks

      Comment

      • Matt Zimmermann
        Mega Mivite










        • Apr 2008
        • 2482

        #4
        Re: How Navigation menu on desktop and mobile works

        @kitdang - Since your child UL of the level-1 LI is within DIVs, I believe that is what is causing the navigation not to populate. You may want to try duplicating the navigation code for the mobile navigation to create the clone yourself.
        Matt Zimmermann

        Miva Web Developer
        Alchemy Web Development
        https://www.alchemywebdev.com
        Site Development - Maintenance - Consultation

        Miva Certified Developer
        Miva Professional Developer

        https://www.dev4web.net | Twitter

        Comment

        • kitdang
          Mivite


          • Jan 2009
          • 406

          #5
          Re: How Navigation menu on desktop and mobile works

          Thanks Matt. Do you know which js file is creating the clone? I like to see how it works before manually creating the clone myself.

          Comment

          • Matt Zimmermann
            Mega Mivite










            • Apr 2008
            • 2482

            #6
            Re: How Navigation menu on desktop and mobile works

            @kitdang - The function is part of the Mobile Navigation portion of the plugins.js file.
            Matt Zimmermann

            Miva Web Developer
            Alchemy Web Development
            https://www.alchemywebdev.com
            Site Development - Maintenance - Consultation

            Miva Certified Developer
            Miva Professional Developer

            https://www.dev4web.net | Twitter

            Comment

            • kitdang
              Mivite


              • Jan 2009
              • 406

              #7
              Re: How Navigation menu on desktop and mobile works

              Okay, I won't be able to tinker with that. So for someone like me that wanted to enhance their navi, do you recommend a certain structure that doesn't break the mobile js? Thanks and appreciate the help

              Comment

              • Matt Zimmermann
                Mega Mivite










                • Apr 2008
                • 2482

                #8
                Re: How Navigation menu on desktop and mobile works

                @kitdang - My only thought for this might be to duplicate the navigation structure in the navigation bar so you have a traditional nested UL which is hidden on desktop and make the custom DIVs hidden for non-desktop.
                Matt Zimmermann

                Miva Web Developer
                Alchemy Web Development
                https://www.alchemywebdev.com
                Site Development - Maintenance - Consultation

                Miva Certified Developer
                Miva Professional Developer

                https://www.dev4web.net | Twitter

                Comment

                Working...
                X