🔧 Installation Instructions for most websites (HTML / Vanilla JS)
Add the following HTML snippet where you want the widget to appear:
<div
class="spark"
data-partner-url="https://www.your_domain.com"
data-partner-id="YOUR_PARTNER_ID"
data-theme="light"
data-limit="6"
></div>
<script src="https://cdn.buffalosfire.com/the-daily-spark.js" async></script>
⚙️ Configuration options
data-partner-url
: The base URL of your site (required for tracking and attribution).data-partner-id
: Your unique partner ID (contact us to obtain this).data-theme
: Appearance theme:light
: Light modedark
: Dark modeauto
: Follows the visitor’s system preference.
data-limit
: Number of articles to show. Accepts3
,6
,9
, or12
.data-layout
:vertical
orgrid
.
The layout determines how the widget displays:- On larger screens,
vertical
shows a stacked sidebar style, whilegrid
arranges items in a responsive grid. - On smaller screens (mobile), the widget always falls back to the vertical layout for readability.
- You can see a demo in the sidebar of this article (if you're viewing on desktop) and below this text for the grid layout example.
- On larger screens,
💡 Platform notes
This simple embed method works best on platforms that allow custom HTML and third-party scripts.
- Wix: Use the "Embed HTML" widget to paste the snippet.
- Squarespace: Use a "Code Block" to add the HTML and script.
- Drupal: Paste the snippet into a block or page using the "Full HTML" input format.
- Webflow / Weebly / Ghost / other builders: Works similarly — use their custom code or embed HTML features.
For platforms that don't allow third-party scripts directly (or if you need tighter integration), a dedicated plugin may be a better option — we provide a plugin for WordPress, a tutorial for React and Next.js and plan to support other platforms soon.
❓ Need help?
Contact us at spark@buffalosfire.com to get your unique partner_id
or for integration support.