Lesson 19 of 50
38% Complete
38%

WordPress Blocks and Gutenberg

Gutenberg is the block-based editing experience in WordPress. It allows you to create and arrange content using blocks instead of writing all the content in HTML manually.

Learning Objective: Understand the Gutenberg editor, learn about common block types, create content with blocks, and organize a WordPress page or post.

1. What Is Gutenberg?

Gutenberg is the name commonly used for the WordPress block editor. Each piece of content, such as a paragraph, heading, image or button, can be added as a separate block.

Traditional Editing
  • Content may be entered in a single editor area.
  • Formatting can be less visual in some workflows.
  • Custom layouts may require extra tools or code.
Block Editing
  • Content is divided into individual blocks.
  • Blocks can be rearranged visually.
  • Many layouts can be created without coding.

2. How to Open the Gutenberg Editor

Follow these steps to open the block editor:

Steps to Open the Editor
  1. Log in to your WordPress admin dashboard.
  2. Open Posts → Add New Post or Pages → Add New Page.
  3. Enter a title for your content.
  4. Click the block inserter (+) to add blocks.
  5. Choose the blocks you need.
  6. Preview your content and publish or save it as a draft.

3. What Is a Block?

A block is an individual content element in the editor. For example, a heading is one block, a paragraph is another block, and an image can be added as its own block.

Block Purpose Example
Paragraph Adds normal text. Welcome to our website.
Heading Creates a section heading. Our Courses
Image Displays an image. Course or business image
List Displays items in a list. HTML, CSS, JavaScript
Button Adds a clickable button. Explore Courses
Columns Arranges content into columns. Two course information sections
Quote Highlights a quotation. A student's feedback
Video Embeds or displays video content. A course introduction video

4. How to Add a Block

The block inserter helps you find and add the content element you need. Its exact appearance may vary by WordPress version.

Adding a Paragraph Block
  1. Open a post or page in the block editor.
  2. Click the plus (+) block inserter.
  3. Search for Paragraph.
  4. Select the Paragraph block.
  5. Type your content.
Example content:

Welcome to Soopro Pathshala. We provide computer education and programming tutorials for students.

5. Working with Heading and Paragraph Blocks

Headings organize content into sections, while paragraphs provide explanations. A good heading structure makes pages easier to read.

Example: A Course Page

Learn Web Development

Learn to build websites using HTML, CSS and JavaScript.

What You Will Learn

You will learn website structure, styling, programming basics and responsive design.

Tip: Use headings in a logical order. Normally, use one main H1 title for the page and H2 headings for major sections, with H3 headings for subsections where appropriate.

6. Add and Edit Images

The Image block allows you to add pictures to posts and pages. You can upload an image, select one from the Media Library, or use an image URL when that option is available.

Steps to Add an Image
  1. Click the plus (+) icon.
  2. Search for the Image block.
  3. Choose Upload, Media Library or another available option.
  4. Select your image.
  5. Add meaningful alternative text (alt text).
  6. Adjust alignment and other available image settings.

Best Practice: Use appropriate image sizes and descriptive alt text to improve accessibility.

7. Create Lists and Buttons

Lists organize related information, while buttons help visitors navigate to important pages or take actions.

List Block Example
  • HTML
  • CSS
  • JavaScript
  • React
Button Block Example

A button can direct visitors to a course page, contact page or admission form.

This is only a visual example. Create a real button and set its link in the WordPress editor.

8. Use Columns to Create Layouts

The Columns block lets you arrange content side by side. It can be useful for displaying courses, services, features or contact details.

Example: Two-Column Layout

Computer Courses

Learn basic computer skills, office software and other useful applications.

Programming Courses

Learn HTML, CSS, JavaScript, Python and other programming technologies.

In WordPress, insert a Columns block, choose a layout, and add the required blocks inside each column. Check the mobile preview because columns may stack on smaller screens.

9. Move, Duplicate and Remove Blocks

You can manage blocks individually to adjust your page layout. Select a block to view its toolbar and available settings.

Action What It Does
Move Changes the position of a block.
Duplicate Creates a copy of a block.
Remove Deletes the selected block from the content.
Group Combines blocks into a group for easier organization.
List View Displays the page's block structure in a list.
Be Careful: Removing a block deletes it from the page or post content. Review your changes before updating or publishing.

10. Block Settings and Styles

When you select a block, the editor may display settings in a toolbar or settings sidebar. Options depend on the selected block, theme and WordPress version.

Content Settings
Edit the text, image, link or other block content.
Style Settings
Change supported colors, typography and appearance.
Layout Settings
Adjust supported alignment, spacing and dimensions.

11. Save and Publish Your Content

After creating your page or post, save your work using the appropriate editor controls.

  1. Review the page title and content.
  2. Check images, links and block alignment.
  3. Preview the page when possible.
  4. Use Save draft or Save when you want to continue later.
  5. Use Publish to make a new post or page public, or Update to save changes to published content.
  6. Visit the page to confirm that everything appears correctly.

12. Practical Assignment

Activity: Create a Course Information Page

Create a new WordPress page named Our Courses.

  1. Add a Heading block with the title "Our Courses".
  2. Add a Paragraph block introducing your institute.
  3. Add an Image block with a suitable image.
  4. Add a List block containing at least four courses.
  5. Add a Columns block with two course descriptions.
  6. Add a Button block linking to a relevant page.
  7. Use suitable colors and styles where available.
  8. Preview and save or publish your page.

Challenge: Create a professional course page for Soopro Pathshala using at least six different block types.

Lesson Summary

  • Gutenberg is the WordPress block editor.
  • Each content element can be managed as a separate block.
  • Common blocks include Paragraph, Heading, Image, List, Button and Columns.
  • Blocks can be moved, duplicated, grouped and removed.
  • Block settings control supported content, style and layout options.
  • Preview and review your work before publishing.

Lesson 19 Quiz

Choose the correct answer for each question.

Q1. What is a block in Gutenberg?
Q2. Which block is useful for arranging content side by side?
Q3. What should you do before publishing a page?