Off canvas menu with navbar and repetition

  • I'm new to UIKit and looking to set up a navbar on desktop and off-canvas menu on mobile.


    Every demo or live UIKit site I've seen so far with this setup are replicating the menu links twice, for each type of menu.


    Is this the best method? I just feel a bit wary of replicating the menu links like this.

  • SPQRInc

    Approved the thread.
  • Usually pagekit templates shows the horizontal bar on tablets and desktops and only on smartphones u get the burger menu, but i never seen that you have to replicate any menu entry twice for that.


    You mean probably the if / else case then it's true, but you can easy implement only the off canvas menu instead of regular horizontal menu bar. Just need to delete te the regular bar from template.php and put the off canvas part instead.