Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML structure #5

Open
theamnesic opened this issue Oct 19, 2016 · 2 comments
Open

HTML structure #5

theamnesic opened this issue Oct 19, 2016 · 2 comments

Comments

@theamnesic
Copy link

theamnesic commented Oct 19, 2016

Hi guys,

For a better text semantics, or just a better integration with WordPress, do you think it's possible to use the plugin with this HTML structure ?

      <ul data-menu="main" class="menu__level">
        <li class="menu__item"><a class="menu__link" data-submenu="submenu-1" href="#">Item 1</a>
          <ul data-menu="submenu-1" class="menu__level">
            <li class="menu__item"><a class="menu__link" href="">Item 1 child</a></li>
            <li class="menu__item"><a class="menu__link" href="">Item 1 child</a></li>
            <li class="menu__item"><a class="menu__link" href="">Item 1 child</a></li>
            <li class="menu__item"><a class="menu__link" href="">Item 1 child</a></li>
            <li class="menu__item"><a class="menu__link" href="">Item 1 child</a></li>
          </ul>
        </li>
        <li class="menu__item"><a class="menu__link" data-submenu="submenu-2" href="#">Item 2</a>
          <ul data-menu="submenu-2" class="menu__level">
            <li class="menu__item"><a class="menu__link" href="">Item 2 child</a></li>
            <li class="menu__item"><a class="menu__link" href="">Item 2 child</a></li>
            <li class="menu__item"><a class="menu__link" href="">Item 2 child</a></li>
          </ul>
        </li>
        <li class="menu__item"><a class="menu__link" data-submenu="submenu-3" href="#">Item 2</a>
          <ul data-menu="submenu-3" class="menu__level">
            <li class="menu__item"><a class="menu__link" href="">Item 3 child</a></li>
            <li class="menu__item"><a class="menu__link" href="">Item 3 child</a></li>
            <li class="menu__item"><a class="menu__link" href="">Item 3 child</a></li>
          </ul>
        </li>
      </ul>

I can't find the trick ...
Thanks!

— G

@rhinorck
Copy link

@theamnesic Have you figured out how to get this working with smooth animations?

@paladio
Copy link

paladio commented Nov 23, 2019

Hi dear friend, your work is great
I also agree with our friend. This is the best menu I've ever seen but if you can upgrade it and improve the html structure it's great. If you standardize the html structure and design it according to WordPress menus, it would be great. Thanks dear friend. Congratulations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants