Guides / Add to your website

Show your content on your website

One line of code, then choose where each kind of content appears.

Video walkthrough5 min read

1. Add one line to your website

Open Add to website and copy the first code box. It looks like this:

<script src="https://cms.devdwell.com/embed.js" data-project="YOUR-PROJECT-ID" defer></script>

Paste it just before </body> on every page that shows content. Works with plain HTML, WordPress, Webflow, Shopify, Squarespace (code injection) and most site builders. Not sure where it goes? Send this page to whoever built your site.

2. Choose where content appears

Pick a content type from the dropdown and copy the ready-made code into your page where it should appear. Choose List to show several entries (like a blog page) or Single entry for one (like a blog post page). The preview next to it shows exactly what visitors will see.

3. Publish and you’re done

Only Live entries appear on your website. From now on, whenever you publish in Devdwell, your website updates by itself within seconds. You never need to touch the code again.

Template basics (for whoever adds the code)

WriteTo
{{title}}insert a field’s text
{{date|date}}format a date nicely
data-dw-src="photo"show an image
data-dw-html="body" / data-dw-md="body"show formatted text
data-dw-list="posts" data-limit="3"repeat for the latest three posts

Full details are in the developer guide.