Technical Questions
Frequently asked technical questions
Technical FAQ
-
Can I include the Tockify embed script in the concatenated/minified script for my site?
No. The embed script is updated over time to fix problems and add enhancements, so it needs to be downloaded from us each time you use it rather than concatenated/minified with other JavaScript that you use.
-
Where does the embed script go?
The embed script consists of a
<div>tag and a<script>tag. The<div>defines where the calendar will go - the<script>is just there for convenience - you could put it in the<head>section if you prefer. -
How can I limit the calendar's size?
By default the calendar will fill 100% of the available width and its height will vary depending on how many events are being shown.
It's designed for modern websites where content underneath the calendar is able to move down as the calendar grows. By varying its height we're able to avoid showing an unsightly scroll bar and make the calendar look like it truly belongs on your site.
Some visual website builder tools fix the position of everything on the page exactly. For sites built this way the calendar can overlap with other parts of the page as its height changes causing problems.
In these cases you can limit the calendar's height using our Embedding API. This is usually a bad idea so you should only do it if you have to.
Here's an example embed code modified to limit the height to 600 pixels:
<div data-tockify-calendar="spirited" data-tockify-component="calendar" data-tockify-height="600px" ></div> <script data-cfasync="false" data-tockify-script="embed" src="https://public.tockify.com/browser/embed.js"></script>This example will limit the calendar's height to 600 pixels and create a scrollbar if it gets any longer.