Guides

Add Code Blocks and Snippets to Webflow CMS Blog Posts

If you use Webflow CMS to publish blog posts or documentation for a technical audience—you need an easy way to add code blocks to posts.

Unfortunately Webflow's text editor doesn't support this natively. If you Google this issue, a few hacky workarounds will come up. These include embedding Github Gists/Codepens, using custom code/scripts, etc. However, we haven't found any of these options to be ideal.

The problem with custom code solutions

While we love creating a Github Gist or Codepen for one-off use cases, if you're publishing frequently, this workflow quickly becomes an un-manageable nightmare. It doesn't scale.

Other suggestions like adding custom javascript to your site can be equally frustrating. If you (or Webflow) make any tweaks to your html schema or classnames, that custom code you pasted from an old Webflow forum post can easily break.

The best way to add code blocks to Webflow CMS (as of 2023)

Audienceful is designed specifically to make publishing content to your Webflow site easier, with native support for things like code blocks, code snippets, and more out of the box.

It works like Google Docs or Notion with live collaboration (perfect for teams), and offers a distraction-free editor designed specifically for writing content.

How to publish blog posts with code snippets using Audienceful

Here's a step-by-step guide to setting up a repeatable publishing workflow for all content on your site:

  1. Create a free audienceful account here. Unlimited publishing to 1 collection is free, publishing to multiple collections is possible by upgrading to any paid plan.
  2. Connect your Webflow CMS collections. Here's a quick guide. These can even be across multiple different websites.
  3. Get started! You now write, publish, and update posts with code blocks and snippets until your heart's content.

Turn Webflow into a content machine

Once you start using Audienceful you'll quickly see how much easier it is to blog and publish content this way. It's not just useful for blogs, but can also be used for changelogs, announcements, job listings, press releases, help docs, and so much more.

In fact, we use Audienceful to publish all of the content on this website, including this post your're reading right now!

Email? Easy.

Join freeLearn more