Plugging in a 3rd party Bootstrap theme is easily accomplished with a bit of template editing. You'll need to edit your base.html template and look for this line within the head element:
<link rel="stylesheet" href="/css/themes/{{ theme }}/faq.css"/>
You'll replace that line with two lines that look like this:
<link rel="stylesheet" href="/css/faq.css"/>
<link rel="stylesheet" href="http://your.server.edu/theme.css"/>
The second stylesheet's href attribute will of course need to be set to reference your custom Bootstrap theme. Easy peasy, right?
One minor complication that you might run into surrounds Bootstrap icons Vs. FontAwesome icons. Chances are that any third-party Bootstrap theme you elect to use will automatically include Bootstrap icons. If there is an easy way to exclude those Bootstrap icons from your theme, then we recommend you do so in preference to FontAwesome. If that isn't possible, no worries, but you'll want to remove these lines in the head element of the base.html template:
<link rel="stylesheet" href="/css/font-awesome.min.css"/>
<!--[if IE 7]>
<link rel="stylesheet" href="/css/font-awesome-ie7.min.css"/>
<![endif]-->
Using FontAwesome icons. FontAwesome makes it super simple to embed tons of icons within your FAQ site. You can place icons anywhere you'd like by creating an i element with a class name which is the same as the icon's name.
E.g.
<i class="icon-comments-alt"></i>
In fact, you can do all sorts of things with these icons by adding classes to any i element...
- Control size with icon-large, icon-2x, icon-3x, or icon-4x
- Add borders with icon-border
- Replace list bullets. Looks like this...
<ul class="icons">
<li><i class="icon-ok"></i> Lists</li>
</ul> - Animate with icon-spin.1
So, here's how you'd create a large, bordered book icon that spins:
<i class="icon-book icon-large icon-border icon-spin"></i>
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).
1 Works best with icon-spinner and icon-refresh.
1 Works best with icon-spinner and icon-refresh.
No comments:
Post a Comment