Embed Upcoming Events

The Hub gives you the ability to show upcoming Scottish political events 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:events></thehub:events>
<script async src="//thehub.scot/share/embed.js" charset="utf-8"></script>

Which would display, like so:

Members of The Hub will see additional options on the events list, allowing them to like & share as well as indicate if they will be attending.

By default, the width of the posts in this list is set to 525px, and can be changed by adding a width attribute:

<thehub:events width="300px" ></thehub:events>
<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 10) and use your own stylesheet to make sure the events display to match the look and feel of your website:

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