Home / Companies / Sanity / Blog / Post Details
Content Deep Dive

Creating Custom Content Blocks: Wordpress Gutenberg vs. Sanity

Blog post from Sanity

Post Details
Company
Date Published
Author
Knut Melvær
Word Count
895
Language
English
Hacker News Points
-
Summary

WordPress 5.0 introduced the Gutenberg rich text editor, which sparked interest and debate due to its promise of customizability, particularly in creating custom content blocks. The article on Smashing Magazine highlights how developers can recreate a testimonial slider using Sanity, a headless CMS, contrasting its flexibility with WordPress's traditional template system. Sanity allows for rapid project initiation and real-time content synchronization by defining content models, such as a testimonial slider, which comprises author, image, content, and source link fields. Unlike WordPress, which outputs content as HTML, Sanity utilizes Portable Text, enabling content portability across various markups and facilitating custom editorial experiences. The tutorial emphasizes the ease of integrating Sanity with frontend frameworks like Vue or React, offering a more versatile approach to managing and presenting content compared to WordPress's Gutenberg.