{% extends "orga/settings/base.html" %} {% load bootstrap4 %} {% load compress %} {% load i18n %} {% load static %} {% block settings_content %} {% compress js %} {% endcompress %}
{% blocktrans trimmed %} The pretalx schedule widget is a way to embed your schedule into your event website. This way, your attendees can see your schedule without leaving your website, and you can style the schedule to fit right in with your website. {% endblocktrans %}
{% blocktrans trimmed %} Using this form, you can generate code to copy and paste to your website source. {% endblocktrans %}
{% blocktrans trimmed %}
To embed the widget into your website, copy the following code to the <head>
section of your website:
{% endblocktrans %}
<link rel="stylesheet" type="text/css" href="{{ request.event.urls.schedule.full }}widget/v1.css"> <script type="text/javascript" src="{{ request.event.urls.schedule.full }}widget/v1.LOCALE.js" async></script>
{% blocktrans trimmed %} Then, copy the following code to the place of your website where you want the widget to show up: {% endblocktrans %}
<pretalx-schedule-widget event="{{ request.event.urls.base.full }}" height="HEIGHT"></pretalx-schedule-widget> <noscript> <div class="pretalx-widget"> <div class="pretalx-widget-info-message"> JavaScript is disabled in your browser. To access our schedule without JavaScript, please <a target="_blank" href="{{ request.event.urls.schedule.full }}">click here</a>. </div> </div> </noscript>
{% blocktrans trimmed with link='https://docs.pretalx.org/user/event/widget.html' %} Please look at our documentation for more information. {% endblocktrans %}
{% blocktrans trimmed %} This is roughly what your widget will look like by default: {% endblocktrans %}