Embed Fact Checks

The Hub gives you the ability to show our amazing Fact Check area on your website through the use of a couple of lines of code.

How do I get this on my website?

It's simple. All you need to do is add this line of code anywhere you want events shown:

<thehub:facts></thehub:facts>
<script async src="//thehub.scot/share/embed.js" charset="utf-8"></script>

Which would display, like so:

There are 2 additional theme options available to use ("expanded" & "compact") and this can be set by using the "theme" parameter:

<thehub:facts theme="expanded"></thehub:facts>
<script async src="//thehub.scot/share/embed.js" charset="utf-8"></script>

There is also the option to just show different Fact Check topics. Simply amend the code to include the "area" parameter:

There are 7 different areas to choose from ("borders", "currency", "defence", "economy", "europe", "pensions" & "other")

<thehub:facts area="pensions"></thehub:facts>
<script async src="//thehub.scot/share/embed.js" charset="utf-8"></script>

You can change the width of the events area by adding a width attribute:

<thehub:facts width="300px"></thehub:facts>
<script async src="//thehub.scot/share/embed.js" charset="utf-8"></script>

You can also limit the number of results that are returned (maximum of 20) and use your own stylesheet to make sure the events display to match the look and feel of your website:

<thehub:facts limit="6" css="http://site.com/path/to/stylesheet.css"></thehub:facts>
<script async src="//thehub.scot/share/embed.js" charset="utf-8"></script>