From 9f91e1b8f4fad6eae9ef74d097f7dacaab14002b Mon Sep 17 00:00:00 2001 From: Rick Peterman Date: Thu, 25 Jan 2024 12:37:54 -0600 Subject: [PATCH 1/3] feat(theworld): configure and style editor blocks - disable blocks not yet supported by the frontend. - disable block patterns. - update editor styles to be closer to frontend layout --- .../plugins/tw-qa-block/build/index.asset.php | 2 +- wp-content/plugins/tw-qa-block/build/index.js | 2 +- wp-content/plugins/tw-qa-block/src/save.js | 2 +- .../themes/the-world/css/block-editor.css | 8 + wp-content/themes/the-world/css/editor.css | 106 ++++++++ wp-content/themes/the-world/functions.php | 95 +++++++ wp-content/themes/the-world/js/blockembed.js | 11 + wp-content/themes/the-world/theme.json | 252 +++--------------- 8 files changed, 262 insertions(+), 216 deletions(-) create mode 100644 wp-content/themes/the-world/css/block-editor.css create mode 100644 wp-content/themes/the-world/css/editor.css create mode 100644 wp-content/themes/the-world/js/blockembed.js diff --git a/wp-content/plugins/tw-qa-block/build/index.asset.php b/wp-content/plugins/tw-qa-block/build/index.asset.php index 47afa22d7..7cbcc887e 100644 --- a/wp-content/plugins/tw-qa-block/build/index.asset.php +++ b/wp-content/plugins/tw-qa-block/build/index.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => 'a96c1cdaf5f10916b7e7'); + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => 'cbf0705fb32bbfc3723e'); diff --git a/wp-content/plugins/tw-qa-block/build/index.js b/wp-content/plugins/tw-qa-block/build/index.js index 95961c7a6..dd9e89983 100644 --- a/wp-content/plugins/tw-qa-block/build/index.js +++ b/wp-content/plugins/tw-qa-block/build/index.js @@ -1 +1 @@ -!function(){"use strict";var e,r={802:function(){var e=window.wp.blocks,r=window.wp.element;function t(){return t=Object.assign?Object.assign.bind():function(e){for(var r=1;re.length)&&(r=e.length);for(var t=0,n=new Array(r);t=a)&&Object.keys(n.O).every((function(e){return n.O[e](t[i])}))?t.splice(i--,1):(c=!1,a0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[t,o,a]},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},function(){var e={826:0,431:0};n.O.j=function(r){return 0===e[r]};var r=function(r,t){var o,a,l=t[0],c=t[1],i=t[2],s=0;if(l.some((function(r){return 0!==e[r]}))){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);if(i)var u=i(n)}for(r&&r(t);se.length)&&(r=e.length);for(var t=0,n=new Array(r);t=a)&&Object.keys(n.O).every((function(e){return n.O[e](t[c])}))?t.splice(c--,1):(i=!1,a0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[t,o,a]},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},function(){var e={826:0,431:0};n.O.j=function(r){return 0===e[r]};var r=function(r,t){var o,a,l=t[0],i=t[1],c=t[2],s=0;if(l.some((function(r){return 0!==e[r]}))){for(o in i)n.o(i,o)&&(n.m[o]=i[o]);if(c)var u=c(n)}for(r&&r(t);s .block-editor-block-list__block.wp-block:is(.alignfull) { + width: calc(100vw - 280px); + } +} diff --git a/wp-content/themes/the-world/css/editor.css b/wp-content/themes/the-world/css/editor.css new file mode 100644 index 000000000..4ebfcb078 --- /dev/null +++ b/wp-content/themes/the-world/css/editor.css @@ -0,0 +1,106 @@ +body { + --_editor--content--width: 960px; + --_editor--gutter: 1rem; + --_editor--color--muted: #535355; + container-type: inline-size; + container-name: editor-content; +} + +.wp-block-post-content { + display: block; + box-sizing: border-box; + max-width: var(--_editor--content--width); + margin-inline: auto; + padding-inline: var(--_editor--gutter); + padding-block-end: 2rem; +} + +.wp-block-post-content > * + * { + margin-block-start: 1.75rem; +} +.wp-block-post-content > * + *:not(.alignleft, .alignright) { + margin-block-end: 0; +} + +.block-editor-block-list__layout.is-root-container + > .wp-block:is( + .alignfull, + .alignwide, + .file-browser-width, + .file-full-width + ):not(.alignleft, .alignright) { + position: relative; + left: 50%; + translate: -50% 0; + width: 100vw; +} +.block-editor-block-list__layout.is-root-container + > .wp-block:is(.alignwide, .file-full-width):not(.alignleft, .alignright) { + max-width: calc(var(--_editor--content--width) * 1.25); +} + +.block-editor-block-list__layout.is-root-container > .wp-block figcaption { + color: var(--_editor--color--muted); + font-size: 0.9rem; +} +.block-editor-block-list__layout.is-root-container + > .wp-block:is(.alignwide, .alignfull) + figcaption { + box-sizing: border-box; + max-width: var(--_editor--content--width); + margin-inline: auto; + padding-inline: var(--_editor--gutter); +} + +.block-editor-block-list__layout.is-root-container + > :where(.wp-block-pullquote) { + color: var(--wp--preset--color--blue-900); + font-family: var(--wp--preset--font-family--system-serif); + border-color: var(--_editor--color--muted); + text-wrap: balance; +} +.block-editor-block-list__layout.is-root-container + > :where(.wp-block-pullquote) + > blockquote + > * { + white-space: unset !important; +} +.block-editor-block-list__layout.is-root-container + > :where(.wp-block-pullquote) + cite { + color: var(--_editor--color--muted); +} +.block-editor-block-list__layout.is-root-container + > :where(.wp-block-pullquote) + cite::before { + content: "-"; + margin-inline-end: 1ch; +} + +.block-editor-block-list__layout.is-root-container + > :is( + .wp-block-embed[data-title="Twitter"]:not(.alignleft, .alignright), + .wp-block-embed[data-title="Twitter"]:is(.alignwide, .alignfull) + ) { + left: unset; + translate: unset; + width: auto; + max-width: 550px; + margin-inline: auto; +} + +@container editor-content (min-width: 600px) { + body { + --_editor--gutter: 1.5rem; + } + + .wp-block-post-content { + --_editor--content--width: 600px; + } +} + +@container editor-content (min-width: 960px) { + .wp-block-post-content { + --_editor--content--width: 960px; + } +} diff --git a/wp-content/themes/the-world/functions.php b/wp-content/themes/the-world/functions.php index c56115f07..9ac34da27 100644 --- a/wp-content/themes/the-world/functions.php +++ b/wp-content/themes/the-world/functions.php @@ -160,5 +160,100 @@ function tw_admin_styles() { endif; add_action( 'admin_head', 'tw_admin_styles' ); +if ( ! function_exists( 'tw_admin_init_editor_styles' ) ) { + /** + * Set cookie to store auth token. SHould be an http cookies. + * Assume frontend will be served from the same domain. + * + * @return void + */ + function tw_admin_init_editor_styles() { + add_theme_support( 'editor-styles' ); + add_editor_style( 'css/editor.css' ); + } +} +add_filter( 'admin_init', 'tw_admin_init_editor_styles' ); + +if ( ! function_exists( 'tw_allowed_block_types' ) ) : + /** + * Set allowed Gutenberg blocks. + * + * @param bool|string[] $allowed_blocks Array of allowed blocks. Boolean to enable/disable all. + * @param WP_Block_Editor_Context $editor_context Current block editor context. + * + * @return bool|string[] Array of allowed blocks. Boolean to enable/disable all. + */ + function tw_allowed_block_types( $allowed_blocks, $editor_context ) { + $allowed_blocks = array( + // Text... + 'core/paragraph', + 'core/heading', + 'core/list', + 'core/list-item', + 'core/pullquote', + 'tw/qa-block', + + // Media... + 'core/image', + 'core/audio', + + // Design... + 'core/separator', + + // Embeds... + 'core/embed', + ); + + if ( 'page' === $editor_context->post->post_type ) { + $allowed_blocks[] = 'core/shortcode'; + } + + return $allowed_blocks; + } +endif; +add_action( 'allowed_block_types_all', 'tw_allowed_block_types', 25, 2 ); + +if ( ! function_exists( 'tw_block_editor_assets' ) ) : + /** + * Setup block editor scripts and styles. + * + * @uses wp_enqueue_scripts() Enqueue scripts hook. + * @uses wp_enqueue_styles() Registers style css file. + */ + function tw_block_editor_assets() { + wp_enqueue_script( + 'tw-deny-list-blocks', + get_template_directory_uri() . '/js/blockembed.js', + array( 'wp-blocks', 'wp-dom-ready', 'wp-edit-post' ), + '1.0', + array( 'in_footer' => true ) + ); + wp_enqueue_style( + 'tw-block-editor-styles', + get_template_directory_uri() . '/css/block-editor.css', + array(), + '1.0' + ); + } +endif; +add_action( 'enqueue_block_editor_assets', 'tw_block_editor_assets' ); + +if ( ! function_exists( 'tw_remove_core_block_patterns' ) ) : + /** + * Remove core block patterns. + * + * @uses remove_theme_support() Allows a theme to de-register its support of a certain feature. + */ + function tw_remove_core_block_patterns() { + remove_theme_support( 'core-block-patterns' ); + } +endif; +add_action( 'after_setup_theme', 'tw_remove_core_block_patterns' ); + +/** + * Prevent remote block patterns from loading. + */ +add_filter( 'should_load_remote_block_patterns', '__return_false' ); + // Remove Windows Live Writer manifest link. remove_action( 'wp_head', 'wlwmanifest_link' ); diff --git a/wp-content/themes/the-world/js/blockembed.js b/wp-content/themes/the-world/js/blockembed.js new file mode 100644 index 000000000..f31e6a487 --- /dev/null +++ b/wp-content/themes/the-world/js/blockembed.js @@ -0,0 +1,11 @@ +wp.domReady(function () { + const allowedEmbedBlocks = ["twitter", "youtube", "vimeo"]; + + wp.blocks.getBlockVariations("core/embed").forEach(function (blockVariation) { + if (-1 === allowedEmbedBlocks.indexOf(blockVariation.name)) { + wp.blocks.unregisterBlockVariation("core/embed", blockVariation.name); + } + }); + + wp.blocks.unregisterBlockStyle("core/image", ["default", "rounded"]); +}); diff --git a/wp-content/themes/the-world/theme.json b/wp-content/themes/the-world/theme.json index 687856d1b..1ae0e4d86 100644 --- a/wp-content/themes/the-world/theme.json +++ b/wp-content/themes/the-world/theme.json @@ -11,14 +11,34 @@ } ], "settings": { - "appearanceTools": true, + "appearanceTools": false, + "blocks": { + "core/pullquote": { + "border": { + "color": false, + "radius": false, + "style": false, + "width": false + } + } + }, + "border": { + "color": false, + "radius": false, + "style": false, + "width": false + }, "color": { + "background": false, + "custom": false, + "customDuotone": false, + "customGradient": false, "defaultPalette": false, "defaultDuotone": false, "defaultGradients": false, - "custom": false, - "customGradient": false, - "customDuotone": false, + "duotone": [], + "gradients": [], + "link": false, "palette": [ { "color": "#ffffff", @@ -150,50 +170,20 @@ "name": "Tertiary", "slug": "tertiary" } - ] + ], + "text": false }, "layout": { "contentSize": "960px", - "wideSize": "100vh" + "wideSize": "calc(960px * 1.25)" }, "spacing": { - "padding": true, - "margin": true, + "padding": false, + "margin": false, "spacingScale": { "steps": 0 }, - "spacingSizes": [ - { - "size": "clamp(1.5rem, 5vw, 2rem)", - "slug": "30", - "name": "1" - }, - { - "size": "clamp(1.8rem, 1.8rem + ((1vw - 0.48rem) * 2.885), 3rem)", - "slug": "40", - "name": "2" - }, - { - "size": "clamp(2.5rem, 8vw, 4.5rem)", - "slug": "50", - "name": "3" - }, - { - "size": "clamp(3.75rem, 10vw, 7rem)", - "slug": "60", - "name": "4" - }, - { - "size": "clamp(5rem, 5.25rem + ((1vw - 0.48rem) * 9.096), 8rem)", - "slug": "70", - "name": "5" - }, - { - "size": "clamp(7rem, 14vw, 11rem)", - "slug": "80", - "name": "6" - } - ], + "spacingSizes": [], "units": [ "%", "px", @@ -216,183 +206,19 @@ "textDecoration": false, "fontFamilies": [ { - "fontFace": [ - { - "fontFamily": "DM Sans", - "fontStretch": "normal", - "fontStyle": "normal", - "fontWeight": "400", - "src": [ - "file:./assets/fonts/dm-sans/DMSans-Regular.woff2" - ] - }, - { - "fontFamily": "DM Sans", - "fontStretch": "normal", - "fontStyle": "italic", - "fontWeight": "400", - "src": [ - "file:./assets/fonts/dm-sans/DMSans-Regular-Italic.woff2" - ] - }, - { - "fontFamily": "DM Sans", - "fontStretch": "normal", - "fontStyle": "normal", - "fontWeight": "700", - "src": [ - "file:./assets/fonts/dm-sans/DMSans-Bold.woff2" - ] - }, - { - "fontFamily": "DM Sans", - "fontStretch": "normal", - "fontStyle": "italic", - "fontWeight": "700", - "src": [ - "file:./assets/fonts/dm-sans/DMSans-Bold-Italic.woff2" - ] - } - ], - "fontFamily": "\"DM Sans\", sans-serif", - "name": "DM Sans", - "slug": "dm-sans" + "fontFamily": "-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif", + "name": "System Sans-serif", + "slug": "system-sans-serif" }, { - "fontFace": [ - { - "fontDisplay": "block", - "fontFamily": "IBM Plex Mono", - "fontStretch": "normal", - "fontStyle": "normal", - "fontWeight": "300", - "src": [ - "file:./assets/fonts/ibm-plex-mono/IBMPlexMono-Light.woff2" - ] - }, - { - "fontDisplay": "block", - "fontFamily": "IBM Plex Mono", - "fontStretch": "normal", - "fontStyle": "normal", - "fontWeight": "400", - "src": [ - "file:./assets/fonts/ibm-plex-mono/IBMPlexMono-Regular.woff2" - ] - }, - { - "fontDisplay": "block", - "fontFamily": "IBM Plex Mono", - "fontStretch": "normal", - "fontStyle": "italic", - "fontWeight": "400", - "src": [ - "file:./assets/fonts/ibm-plex-mono/IBMPlexMono-Italic.woff2" - ] - }, - { - "fontDisplay": "block", - "fontFamily": "IBM Plex Mono", - "fontStretch": "normal", - "fontStyle": "normal", - "fontWeight": "700", - "src": [ - "file:./assets/fonts/ibm-plex-mono/IBMPlexMono-Bold.woff2" - ] - } - ], - "fontFamily": "'IBM Plex Mono', monospace", - "name": "IBM Plex Mono", - "slug": "ibm-plex-mono" - }, - { - "fontFace": [ - { - "fontFamily": "Inter", - "fontStretch": "normal", - "fontStyle": "normal", - "fontWeight": "200 900", - "src": [ - "file:./assets/fonts/inter/Inter-VariableFont_slnt,wght.ttf" - ] - } - ], - "fontFamily": "\"Inter\", sans-serif", - "name": "Inter", - "slug": "inter" - }, - { - "fontFamily": "-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif", - "name": "System Font", - "slug": "system-font" - }, - { - "fontFace": [ - { - "fontFamily": "Source Serif Pro", - "fontStretch": "normal", - "fontStyle": "normal", - "fontWeight": "200 900", - "src": [ - "file:./assets/fonts/source-serif-pro/SourceSerif4Variable-Roman.ttf.woff2" - ] - }, - { - "fontFamily": "Source Serif Pro", - "fontStretch": "normal", - "fontStyle": "italic", - "fontWeight": "200 900", - "src": [ - "file:./assets/fonts/source-serif-pro/SourceSerif4Variable-Italic.ttf.woff2" - ] - } - ], - "fontFamily": "\"Source Serif Pro\", serif", - "name": "Source Serif Pro", - "slug": "source-serif-pro" - } - ], - "fontSizes": [ - { - "fluid": { - "min": "0.875rem", - "max": "1rem" - }, - "size": "1rem", - "slug": "small" - }, - { - "fluid": { - "min": "1rem", - "max": "1.125rem" - }, - "size": "1.125rem", - "slug": "medium" - }, - { - "fluid": { - "min": "1.75rem", - "max": "1.875rem" - }, - "size": "1.75rem", - "slug": "large" - }, - { - "fluid": false, - "size": "2.25rem", - "slug": "x-large" - }, - { - "fluid": { - "min": "4rem", - "max": "10rem" - }, - "size": "10rem", - "slug": "xx-large" + "fontFamily": "Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol", + "name": "System Serif", + "slug": "system-serif" } - ] + ], + "fontSizes": [] }, - "useRootPaddingAwareAlignments": true + "useRootPaddingAwareAlignments": false }, "styles": { "blocks": { From 64bff17b65b73db6af6bc17b551fa12d3bb9172b Mon Sep 17 00:00:00 2001 From: Rick Peterman Date: Fri, 26 Jan 2024 15:44:48 -0600 Subject: [PATCH 2/3] feat(theworld): editor config and styling --- wp-content/themes/the-world/css/editor.css | 41 +++++++++----------- wp-content/themes/the-world/functions.php | 2 + wp-content/themes/the-world/js/blockembed.js | 4 ++ wp-content/themes/the-world/theme.json | 12 +++++- 4 files changed, 35 insertions(+), 24 deletions(-) diff --git a/wp-content/themes/the-world/css/editor.css b/wp-content/themes/the-world/css/editor.css index 4ebfcb078..de7880a20 100644 --- a/wp-content/themes/the-world/css/editor.css +++ b/wp-content/themes/the-world/css/editor.css @@ -1,6 +1,6 @@ body { - --_editor--content--width: 960px; - --_editor--gutter: 1rem; + --_editor--content--width: 600px; + --_editor--content--gutter: 4rem; --_editor--color--muted: #535355; container-type: inline-size; container-name: editor-content; @@ -11,7 +11,7 @@ body { box-sizing: border-box; max-width: var(--_editor--content--width); margin-inline: auto; - padding-inline: var(--_editor--gutter); + padding-inline: var(--_editor--content--gutter); padding-block-end: 2rem; } @@ -23,20 +23,21 @@ body { } .block-editor-block-list__layout.is-root-container - > .wp-block:is( - .alignfull, - .alignwide, - .file-browser-width, - .file-full-width - ):not(.alignleft, .alignright) { + > .wp-block:where(.alignwide, .alignfull):not(.alignleft, .alignright) { position: relative; left: 50%; translate: -50% 0; width: 100vw; } .block-editor-block-list__layout.is-root-container - > .wp-block:is(.alignwide, .file-full-width):not(.alignleft, .alignright) { - max-width: calc(var(--_editor--content--width) * 1.25); + > .wp-block:is(.alignwide):not(.alignleft, .alignright) { + max-width: var(--_editor--content--width); +} +.block-editor-block-list__layout.is-root-container > .wp-block:is(.alignleft) { + margin-inline-start: calc(var(--_editor--content--gutter) * -1); +} +.block-editor-block-list__layout.is-root-container > .wp-block:is(.alignright) { + margin-inline-end: calc(var(--_editor--content--gutter) * -1); } .block-editor-block-list__layout.is-root-container > .wp-block figcaption { @@ -49,7 +50,7 @@ body { box-sizing: border-box; max-width: var(--_editor--content--width); margin-inline: auto; - padding-inline: var(--_editor--gutter); + padding-inline: var(--_editor--content--gutter); } .block-editor-block-list__layout.is-root-container @@ -59,6 +60,12 @@ body { border-color: var(--_editor--color--muted); text-wrap: balance; } +.block-editor-block-list__layout.is-root-container + > :where(.wp-block-pullquote) + > blockquote { + max-width: var(--_editor--content--width); + margin-inline: auto; +} .block-editor-block-list__layout.is-root-container > :where(.wp-block-pullquote) > blockquote @@ -89,16 +96,6 @@ body { margin-inline: auto; } -@container editor-content (min-width: 600px) { - body { - --_editor--gutter: 1.5rem; - } - - .wp-block-post-content { - --_editor--content--width: 600px; - } -} - @container editor-content (min-width: 960px) { .wp-block-post-content { --_editor--content--width: 960px; diff --git a/wp-content/themes/the-world/functions.php b/wp-content/themes/the-world/functions.php index 9ac34da27..41930b6f9 100644 --- a/wp-content/themes/the-world/functions.php +++ b/wp-content/themes/the-world/functions.php @@ -201,6 +201,8 @@ function tw_allowed_block_types( $allowed_blocks, $editor_context ) { 'core/separator', // Embeds... + // Specific types of embeds are now variants of the embed block. + // Variants can be enabled in `./js/blockembed.js`. 'core/embed', ); diff --git a/wp-content/themes/the-world/js/blockembed.js b/wp-content/themes/the-world/js/blockembed.js index f31e6a487..33ff3fea2 100644 --- a/wp-content/themes/the-world/js/blockembed.js +++ b/wp-content/themes/the-world/js/blockembed.js @@ -8,4 +8,8 @@ wp.domReady(function () { }); wp.blocks.unregisterBlockStyle("core/image", ["default", "rounded"]); + + wp.richText.unregisterFormatType("core/footnote"); + wp.richText.unregisterFormatType("core/text-color"); + wp.richText.unregisterFormatType("core/image"); }); diff --git a/wp-content/themes/the-world/theme.json b/wp-content/themes/the-world/theme.json index 1ae0e4d86..4ee774503 100644 --- a/wp-content/themes/the-world/theme.json +++ b/wp-content/themes/the-world/theme.json @@ -13,12 +13,20 @@ "settings": { "appearanceTools": false, "blocks": { + "core/paragraph": { + "typography": { + "fontFamilies": [] + } + }, "core/pullquote": { "border": { "color": false, "radius": false, "style": false, "width": false + }, + "typography": { + "fontFamilies": [] } } }, @@ -175,7 +183,7 @@ }, "layout": { "contentSize": "960px", - "wideSize": "calc(960px * 1.25)" + "wideSize": "none" }, "spacing": { "padding": false, @@ -294,7 +302,7 @@ "core/post-title": { "spacing": { "margin": { - "bottom": "1.25rem", + "bottom": "3rem", "top": "1.25rem" } }, From 367a479002dacd9db1d4a36790a219fcdad81caa Mon Sep 17 00:00:00 2001 From: Rick Peterman Date: Fri, 26 Jan 2024 17:07:36 -0600 Subject: [PATCH 3/3] feat(theworld): post editor styles --- wp-content/themes/the-world/css/editor.css | 6 +++++- wp-content/themes/the-world/theme.json | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/the-world/css/editor.css b/wp-content/themes/the-world/css/editor.css index de7880a20..eda367a9c 100644 --- a/wp-content/themes/the-world/css/editor.css +++ b/wp-content/themes/the-world/css/editor.css @@ -16,7 +16,7 @@ body { } .wp-block-post-content > * + * { - margin-block-start: 1.75rem; + margin-block-start: 1.75rem !important; } .wp-block-post-content > * + *:not(.alignleft, .alignright) { margin-block-end: 0; @@ -33,6 +33,10 @@ body { > .wp-block:is(.alignwide):not(.alignleft, .alignright) { max-width: var(--_editor--content--width); } +.block-editor-block-list__layout.is-root-container + > .wp-block:is(.alignleft, .alignright) { + width: 44%; +} .block-editor-block-list__layout.is-root-container > .wp-block:is(.alignleft) { margin-inline-start: calc(var(--_editor--content--gutter) * -1); } diff --git a/wp-content/themes/the-world/theme.json b/wp-content/themes/the-world/theme.json index 4ee774503..64f492701 100644 --- a/wp-content/themes/the-world/theme.json +++ b/wp-content/themes/the-world/theme.json @@ -13,6 +13,11 @@ "settings": { "appearanceTools": false, "blocks": { + "core/heading": { + "typography": { + "fontFamilies": [] + } + }, "core/paragraph": { "typography": { "fontFamilies": []