Forum Discussion

neel_psl's avatar
8 years ago

What is the best practice for header and footer?

Hi,

 

What is the best practice for creating the header and footer i.e. where should we place the header and footer

1. in Header/Footer OOTB component?? or 

2. in Head/Body Wrappers??

 

As we have new instance so what would be best practice to follow??

And also why to understand the platform betterly??

 

Thanks

  • neel_psl if your header is copied from www site (main site), then it is better to put it in the Wrapper area. Otherwise OOTB header area is better. Also it all depends on what you try to build. No solid answer. Lithium OOTB components and menus can live in Wrapper area too.
  • neel_psl- We should use header and footer(OOB) for creating header and footer as some OOB components doesn't work inside Head/Body wrappers e.g common.widget.slide-out-nav-menu. Wrappers can be used to include external files and JS.