Want to build your own 24/7 FAQ knowledge base?
LibraryH3lp subscriptions
include unlimited independent internal or public-facing
knowledge bases.
5268 views | Last updated on Jan 10, 2025 FAQ
FAQ content can be flexibly embedded in other web pages. You'll need two things.
<script type="text/javascript"> (function() { var x = document.createElement("script"); x.type = "text/javascript"; x.async = true; x.src = "//MYFAQ.ask.libraryh3lp.com/js/faq-embeddable/embed.js"; var y = document.getElementsByTagName("script")[0]; y.parentNode.insertBefore(x, y); })(); </script>
Note: Substitute your own FAQ name for MYFAQ in the above JavaScript. If you use one of our regional servers, also remember to take that into account. For example, FAQs on our server in Canada look like this:
MYFAQ.ask.ca.libraryh3lp.comAlso if you are testing a page containing this script on your local disk (i.e. you aren't accessing the page from a server), you'll need to add http: or https: just before the // at the beginning of the x.src line.
<div class="lh3-faq-question" data-question-id="485"></div>
ID is the question ID. Find the question ID by viewing your FAQ and looking at the URL for the question you want to embed. The number at the end of the URL is the ID you want to use here.
No options. If no data-question-id, nothing happens.
<div class="lh3-faq-answer" data-question-id="485"></div>
ID is the question ID. Find the ID by viewing your FAQ and looking at the URL for the question you want to embed. The number at the end of the URL is the ID you want to use here.
No options. If no data-question-id, nothing happens.
<div class="lh3-faq-questions"></div>
Defaults to top 20 viewed items, sorted by number of views.
Options:
Example. Show the 10 most viewed questions (and answers) for topic 180 and sort them by last-updated, in descending order (most recently updated first):
<div class="lh3-faq-questions" data-questions-limit="10" data-questions-topic="180" data-questions-order-by="last-updated" data-questions-direction="desc"></div>
<div class="lh3-faq-results"></div>
Options:
Example. Show search results for the word "widget:"
<div class="lh3-faq-results" data-search-phrase="widget"></div>
<div class="lh3-faq-search"></div>
Options:
Example: Change the search button text to "Search our FAQ" and hide the topic drop-down:
<div class="lh3-faq-search" data-submit-value="Search our FAQ" data-show-topic="false"></div>
<div class="lh3-faq-topics"></div>
Options:
Example. Show the topic listing in the form of a tag cloud:
<div class="lh3-faq-topics" data-topic-format="cloud"></div>
Content will typically be styled using CSS on larger web page that includes the embedded FAQ content.
For additional question/answer styling options, you can edit the question-fragment.html template for your FAQ within the Faqs tab of the admin site (Templates section). Using the template, you can do things like apply styling to the question separately from the answer.
Example. In the question-fragment.html template, you can make all of the question titles appear in H2 tags like this:
<h2>{{ question.question|safe }}</h2>
FAQ URL: