WebToSpeech

For publishers · Add an audio player to a Squarespace blog

Put an audio player on every Squarespace post.

Paste two lines into Squarespace Code Injection and every blog post gets a cookie-free audio player automatically—or place it manually with a Code Block on individual posts.

Code Injection requires a Squarespace plan that includes custom JavaScript (Core / Business or higher) and a custom domain. Requires the Publisher plan.

  1. Step 1

    Add your custom domain in WebtoSpeech

    Open Settings → Sites and add the custom domain connected to your Squarespace site.

  2. Step 2

    Paste the verification meta tag into Header

    In Squarespace, open Website → Pages → Website Tools → Code Injection, paste the verification meta tag into Header, and save. Then press Verify in WebtoSpeech.

    Code Injection → Header

    <meta name="webtospeech-verification" content="your_verification_code">
  3. Step 3

    Paste the auto-insert script into Footer

    Paste the line below into Code Injection → Footer and save. On Squarespace 7.1, the data-insert selector places the player automatically at the top of every blog post body without showing on your home page or regular pages.

    Code Injection → Footer

    <script src="https://webtospeech.app/embed.js" data-site="ws_your_site_key" data-insert=".blog-item-content-wrapper > :first-child" async></script>
  4. Step 4

    Open a published post and press play

    Visit any live post on your custom domain (outside the Squarespace editor preview) and click play. Audio starts within seconds and is cached for every future visitor.

    Want to place the player in a specific spot on one post? Add a Code Block containing <div data-webtospeech></div> and WebtoSpeech will mount there instead of auto-inserting a second player.

Placing the player on individual posts only

If you don’t want a player on every post, omit data-insert from the Footer script and drop a Code Block with the div below only on the posts you want read aloud.

Squarespace Code Block

<div data-webtospeech></div>

Good to know on Squarespace

Test on your live custom domain

Squarespace previews use a built-in squarespace.com URL. Always test playback on your verified custom domain where readers visit.

Squarespace 7.0 templates

If your older 7.0 template uses a different wrapper class than .blog-item-content-wrapper, swap the data-insert CSS selector to match your post content container.

Turn your Squarespace blog into a podcast

Squarespace exposes an RSS feed at /blog?format=rss (replace /blog with your blog slug). Connect it in Settings → Sites → Feed and podcast to auto-publish episodes.

No cookies added to your site

The player runs completely cookie-free and sets no third-party trackers.

See everything else the player does

Questions

Does this work on Squarespace 7.1?
Yes. The .blog-item-content-wrapper > :first-child selector targets Squarespace 7.1 blog posts cleanly without affecting regular pages.
Do I need to edit every post when I publish?
No. Once the Footer script is saved in Code Injection, every new blog post gets a player automatically.
Does Squarespace’s RSS feed work with WebtoSpeech’s podcast generator?
Yes. Connect your Squarespace ?format=rss feed in Settings → Sites → Feed and podcast to generate podcast episodes automatically.

Publisher plan

$29 a month. Unlimited sites.

200 hours of audio a month, every Studio and standard voice, cookie-free embeds, RSS-to-podcast feeds, and play counts.