Forum Discussion
Myko_P
Expert
Hi cike !
I am trying to use my custom community header and footer made with the Bootstrap 4 and it looks like in my case it dramatically affects Lithium's default components and layout.
Сould you please describe in more detail the process of injecting the pre-made Bootstrap 4 code (custom community header and footer in my case) into the default responsive community skin?
Below is the approach I am using with no luck.
Page Head Bottom Content section aka head.ftl in SDK plugin:
<link rel="stylesheet" href='${asset.get("/html/assets/bootstrap.min.css")}'/> <link rel="stylesheet" href='${asset.get("/html/assets/header-footer.css")}'/> <script src='${asset.get("/html/assets/jquery-3.3.1.slim.min.js")}'></script> <script src='${asset.get("/html/assets/popper.min.js")}'></script> <script src='${asset.get("/html/assets/bootstrap.min.js")}'></script>
Page header section aka content_wrapper.ftl:
<div class="header-wrapper"> <!-- Responsive Header --> <!--custom header html code goes here --> <!-- Responsive header end --> </div> <@liaBody /> <div class="footer-wrapper"> <!-- Responsive Footer --> <!-- custom footer html code goes here --> <!-- Responsive footer end --> </div>Thanks!
cike
7 years agoChampion
Hi Myko_P,
do you have an example what shows the "dramatically affects Lithium's default components and layout"?
While Lihtium under the hood uses Bootstrap too, maybe the there are some side effects regarding your header/footer style definitions. These maybe overrides Lithium designs and/or layout settings.
Related Content
- 3 years ago
- 8 months ago