Reusing a header within your FAQ is a simple yet effective way to blend the FAQ's look and feel seamlessly into your library's existing website. And the results can be very striking such as with Lovejoy Library at Southern Illinois University Edwardsville.
Let's get started, shall we? After logging into your FAQ site, you'll want to edit your base.html template. And then follow these steps:
1) Comment out the header block using HTML comments. This will look like:
<!--
{% block header %}
<div class="navbar">
<div class="navbar-inner">
{% include "header.html" %}
</div>
</div>
{% endblock %}
-->
2) Add your header. Just below the commented out header block, add the HTML for your header.
The trickiest part after adding in your header's HTML is getting the styling correct. Your strategy for including the styling for your header elements will vary since there are several ways to handle CSS.
- If the CSS is already included directly within each element's style attribute, then you are done.
- If the CSS is part of your website's head element, you can copy those styles over to your FAQ's head element.
- If the CSS for the header is contained within a CSS file, then you can include that file within your FAQ like this:
<link rel="stylesheet" href="http://your.library.edu/header.css"/>
3) Plug in the FAQ edit controls. Add this just below your custom header HTML:
<!-- FAQ login/logout and edit controls -->
<div class="navbar-inner" style="margin: 0; border:none; padding:0; background:none; min-height:20px; border-radius: none; box-shadow:none;"></div>
That's it! You're done. And since we've covered headers in this installment, we might as well move on to footers for our next installment.Want to get your own LibraryH3lp-powered FAQ site up and running? Need to import existing content into your FAQ? E-mail us.
Missed a previous installment of FAQs on FAQs? Here are some quick links to help you catch up: real-time chat and e-mail contact options, mobile-specific view for patrons browsing on smartphones, adding content to your knowledge base, customizing answer previews, style your FAQ with themes, bring your own theme part 1 and part 2.
No comments:
Post a Comment