Skip to content
Wagtail Wagtail + CodeRed Extensions
  • Getting Started
    • Installation
    • Customize the design of your website
    • About The Tutorial
    • Tutorial Part 1: Site Name, Logo, and Global Colors
    • Tutorial Part 2: Adding Pages
    • Tutorial Part 3: Adding Content, Custom CSS
    • Tutorial Part 4: Navbar & Footer
    • Tutorial Part 5: Creating a Blog
    • Tutorial Part 6: Web Page and Google Map
    • Tutorial Part 7: Create Categories with Classifiers
    • Tutorial Part 8: Forms & Contact Pages
    • Tutorial Part 9: SEO Metadata
    • Tutorial Part 10: Images
    • Tutorial Part 11: Password-Protected Pages
  • Advanced Tutorial
    • Customizing Templates & CSS
    • Custom Page Types
  • Features
    • Content Blocks
      • Accordion Block
      • Button Block
      • Card Block
      • Carousel Block
      • Download Block
      • Embed Media Block
      • Film Strip Block
      • Google Map Block
      • HTML Block
      • Image Block
      • Image Gallery Block
      • Image Link
      • Latest Pages Block
      • Modal Block
      • Page Preview Block
      • Price List Block
      • Quote Block
      • Reusable Content Block
      • Table Block
      • Text Block
    • Layout Blocks
      • Card Grid Block
      • Column Block
      • Hero Block
      • Responsive Grid Row Block
      • HTML Block
    • Page Types
      • Article Pages
      • Event Pages
      • Form Pages
      • Location Pages
      • Stream Forms
      • Web Pages
    • Snippets
      • Accordions
      • Carousels
      • Classifiers
      • Content Walls
      • Film Strip
      • Footers
      • Navigation Bars
      • Reusable Content
    • Related Pages
    • Searching
    • Spam Protection
    • Import Pages
    • Mailchimp Integration
  • How-To Guides
    • Best Practices for Images
    • Customize Navbar and Footer
    • Add Tracking Scripts
    • Open External Links in New Tab
    • Translation & Multi-Language Support
    • Run Wagtail CRX with Docker
    • Using a Custom Image Model in Wagtail CRX
    • Convert Existing Site to Use a Custom Image Model
  • Technical Reference
    • Wagtail CRX Django Settings
  • Contributing
  • Deploying & hosting
  • Release Notes
    • v5.0.1 release notes
    • v5.0.0 release notes
    • v4.1.1 release notes
    • v4.1.0 release notes
    • v4.0.1 release notes
    • v4.0.0 release notes
    • v3.0.4 release notes
    • v3.0.3 release notes
    • v3.0.2 release notes
    • v3.0.1 release notes
    • v3.0.0 release notes
    • v2.1.4 release notes
    • v2.1.3 release notes
    • v2.1.2 release notes
    • v2.1.1 release notes
    • v2.1.0 release notes
    • v2.0.0 release notes
    • v1.0.3 release notes
    • v1.0.2 release notes
    • v1.0.1 release notes
    • v1.0.0 release notes
    • v0.25.2 release notes
    • v0.25.1 release notes
    • v0.25.0 release notes
    • v0.24.1 release notes
    • v0.24.0 release notes
    • v0.23.1 release notes
    • v0.23.0 release notes
    • v0.22.3 release notes
    • v0.22.2 release notes
    • v0.22.1 release notes
    • v0.22.0 release notes
    • v0.21.1 release notes
    • v0.21.0 release notes
    • v0.20.0 release notes
    • v0.19.1 release notes
    • v0.19.0 release notes
    • v0.18.2 release notes
    • v0.18.1 release notes
    • v0.18.0 release notes
    • v0.17.0 release notes
    • v0.16.3 release notes
    • v0.16.2 release notes
    • v0.16.1 release notes
    • v0.16.0 release notes
    • v0.15.2 release notes
    • v0.15.1 release notes
    • v0.15.0 release notes
    • v0.14.1 release notes
    • v0.14.0 release notes
    • v0.13.3 release notes
    • v0.13.2 release notes
    • v0.13.1 release notes
    • v0.13.0 release notes
    • v0.12.1 release notes
    • v0.12.0 release notes
    • v0.11.0 release notes
    • v0.10.0 release notes
    • v0.9.1 release notes
    • v0.9.0 release notes
Wagtail Hosting by CodeRed
  1. Docs
  2. Features
  3. Content Blocks
  4. Modal Block
Edit on GitHub View source

Modal Block¶

Creates a popup box with a header, footer, and the ability to display the body as a block. Click the “X” in the corner or background of page to close it.

Example: (Modal Open Button)
The webpage with an open modal button.

The webpage with an open modal button. Can be styled like any other button see Button Block.¶

(Modal Open)
The webpage with an open modal button.

The webpage with an open modal button. Can be styled like any other button see Button Block.¶

Field Reference¶

Fields and purposes:

  • Button Title - The text to show on the button. You can insert simple HTML here as well, such as Learn <b>More</b>.

  • Button Style - The appearance of the button. This is a choice loaded from CRX_FRONTEND_BTN_STYLE_CHOICES Django setting and is inserted as a CSS class in the HTML.

  • Button Size - The size of button. This is a choice loaded from CRX_FRONTEND_BTN_SIZE_CHOICES Django setting and is inserted as a CSS class in the HTML.

  • Modal Heading - The heading, or title, that will display on the modal

  • Content - Choose from other content blocks for the body of the modal.

  • Modal Footer - Choose a Simple Text footer or a button link

Once it is published, website visitors can click the button to see the popup message.

modal editing block

Modal editing block¶

← Latest Pages Block Page Preview Block  →

Page contents

  • Modal Block
    • Field Reference
  • Wagtail Hosting by CodeRed
  • Wagtail CRX on GitHub
  • About CodeRed
© Copyright 2018–2025, CodeRed LLC
Created using Sphinx Wagtail Theme 6.5.0 and Sphinx 8.2.3