Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

Additional wrapper div inside menu?!?

Home › Forums › Older releases › 1.0.x › Additional wrapper div inside menu?!?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3472
    sascha
    Participant

    I was wondering if SM still works with an additional wrapper div. Basically I need for design reasons to add a div like so:

    <ul id="main-menu" class="sm sm-blue">
      <li><a href="#">Item 1</a></li>
      <li>
        <a href="#">Item 2</a>
        <div class="submenu-wrapper">
          <ul>
            <li><a href="#">Item 2-1</a></li>
            <li><a href="#">Item 2-2</a></li>
            <li><a href="#">Item 2-3</a></li>
          </ul>
        <div>
      </li>
      <li><a href="#">Item 3</a></li>
    </ul>

    I only need to add this wrapper to aound the ul tag of the second level. Not any other levels going down (3rd/4th/etc.)
    Thank you,
    Sascha

    #3473
    sascha
    Participant

    I can also add the wrapper div after SM is initialized with JS. I was just wondering if it works at all with wrappers inside.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘1.0.x’ is closed to new topics and replies.