somewebmedia / hc-offcanvas-nav

JavaScript library for creating toggled off-canvas multi-level navigations, allowing endless nesting of submenu elements, supporting swipe gestures, keyboard interactions and ARIA attributes.
https://somewebmedia.github.io/hc-offcanvas-nav/
MIT License
335 stars 82 forks source link

Brand logo on header #42

Closed RD1989 closed 4 years ago

RD1989 commented 4 years ago

How to add brand logo on header. Icon in the right is enough to closing. How to add brand logo in left side.

somewebmedia commented 4 years ago

If you want to add custom content in the menu use data-nav-custom-content data attribute on the list element. And then style it in your css if needed.

Example:

    <li data-nav-custom-content>
      <img src="path/to/your/logo.jpg">
    </li>
RD1989 commented 4 years ago

Thanks

5ulo commented 3 years ago

any way to put the logo inside navTitle so it will show instead of default title All Categories on the first level?

somewebmedia commented 3 years ago

Here is the same question: https://github.com/somewebmedia/hc-offcanvas-nav/issues/47