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 - WordPress Tutorial
From the course: WordPress Content Blocks: Working with Themes
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
-
-
-
-
(Locked)
Add support for wide alignments2m 32s
-
(Locked)
Add styles for wide alignments5m 48s
-
(Locked)
Add support for theme-specific colors3m 16s
-
(Locked)
Add styles for theme-specific colors3m 43s
-
(Locked)
Disable custom color option55s
-
(Locked)
Add support for font sizes2m 25s
-
(Locked)
Add styles for font sizes2m 46s
-
(Locked)
Disable custom font sizes1m 7s
-
(Locked)
Add support for responsive embeds3m 16s
-
(Locked)
-
-