From the course: WordPress Content Blocks: Working with Themes

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Add support for wide alignments

Add support for wide alignments - WordPress Tutorial

From the course: WordPress Content Blocks: Working with Themes

Start my 1-month free trial

Add support for wide alignments

- [Instructor] One of the big selling points of the block editor is the ability to add new alignment widths to the content. To demonstrate what this means I've added a new post to my site called Content widths, and right now it's displayed using the 2019 theme which already has support for these new widths. In addition to the traditional no alignment seen here where the image spans the regular content width, and right, center, and left alignments, a theme can declare support for two new alignments, wide and full, which break the aligned item out of the regular content width. These alignments can be added as several blocks including images, and galleries, columns, the text and media block, and more. The wide alignment option seen at the top here, is intended to extend the width of the block to cover half of the remaining available space. The full alignment option seen at the bottom, is intended to take up all the available space. Switching back to the Simone theme, and looking at the…

Contents