The Daily Spark Widget

What is it and how you can integrate it on your site in seconds.

The Daily Spark widget from Buffalo’s Fire — an independent Native news organization — is a living news ticker you can add to your site in seconds. Every weekday, it pulses with news flashes curated by Native journalists to keep your audience up to speed on policy moves, cultural moments and opportunities across Indian Country — with no extra work for you or your team.

Wherever your site is built, The Daily Spark is designed to drop in smoothly and keep itself updated automatically. Here’s how it works:

  • For most websites: We provide a short embed code — paste it into your site’s markup and The Daily Spark will appear and refresh daily. (Ideal for platforms like Wix, Squarespace or custom HTML sites.) See it here.
  • For WordPress: We offer a lightweight WordPress plugin that supports both shortcodes and direct placement in your theme templates — flexible for any theme. See it here.
  • For React projects: We will provide a clear example showing how to integrate The Daily Spark as a React component. [coming soon]

Once added, there’s no ongoing maintenance: fresh news headlines from Indian Country will appear automatically every weekday morning — no work required from your team. Keep on reading for detailed instructions on how to add the widget to your site.

General-purpose websites and platforms (HTML/JS, Wix, Squarespace...)

This guide covers integration using HTML / Vanilla JS, the recommended approach for most general-purpose websites and platforms that support custom HTML embeds.

🔧 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 mode
    • dark: Dark mode
    • auto: Follows the visitor’s system preference.
  • data-limit: Number of articles to show. Accepts 3, 6, 9, or 12.
  • data-layout: vertical or grid.
    The layout determines how the widget displays:
    • On larger screens, vertical shows a stacked sidebar style, while grid 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.

💡 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.

WordPress plugin

🔧 Installation Instructions for WordPress websites

If you are using WordPress, we provide a plugin that makes it easy to embed The Daily Spark widget using a shortcode.

Download the plugin ZIP file here:

Download Spark Widget Plugin

Then install it on your WordPress site:

  1. Log in to your WordPress Admin panel.
  2. Go to Plugins → Add New.
  3. Click Upload Plugin.
  4. Upload the downloaded spark-widget-plugin.zip file.
  5. Click Install Now, then Activate.

📖 Usage

After activation, you can embed the widget in one of two ways:

Method 1: Shortcode

Use this shortcode anywhere shortcodes are supported (e.g., posts, pages, widgets):

[spark_widget partner_url="https://www.your_domain.com" partner_id="YOUR_PARTNER_ID" theme="light" limit="6" layout="vertical"]

You can adjust the attributes as needed:

  • partner_url: The base URL of your site (required for tracking and attribution).
  • partner_id: Your unique partner ID (required).
  • theme: light, dark, or auto.
  • limit: Number of articles to show (3, 6, 9, 12).
  • layout: vertical or grid.

Example:

[spark_widget partner_url="https://www.mysite.com" partner_id="12345" theme="dark" limit="9" layout="grid"]
Method 2: HTML <div>

Alternatively, you can manually add the widget <div> anywhere in your theme files or HTML blocks — the plugin ensures the required JavaScript is loaded automatically:

<div
  class="spark"
  data-partner-url="https://www.your_domain.com"
  data-partner-id="YOUR_PARTNER_ID"
  data-theme="light"
  data-limit="6"
  data-layout="vertical"
></div>

💡 Platform notes

  • Once activated, the plugin automatically enqueues the required JavaScript file (the-daily-spark.js) across your site.
  • No need to manually add the <script> tag if the plugin is active — just add the <div> or use the shortcode.
  • No additional configuration is required.
  • ⚠️ Please note that the plugin is currently in beta; let us know if you encounter any problems.

❓ Need help?

Contact us at spark@buffalosfire.com to get your unique partner_id or for integration support.