Skip to content

maxpertici/layout-widths

Repository files navigation

Layout Widths

WordPress plugin to manage custom layout widths in the block editor.

Demo

poc-layout-width.mp4

Configuration

Add the custom settings to your theme.json file:

{
	"settings": {
		"custom": {
			"layoutWidths": {
				"widths": {
					"x-content": {
						"label": "X Content",
						"value": "820px"
					},
					"wide": {
						"label": "Wide",
						"value": "1280px"
					},
					"x-wide": {
						"label": "X Wide",
						"value": "1440px"
					},
					"full": {
						"label": "Full",
						"value": "none"
					}
				},
				"labels": {
					"fr-FR": {
						"x-content": "Contenu large",
						"wide": "Large",
						"x-wide": "Très large",
						"full": "Pleine largeur"
					}
				}
			}
		}
	}
}

About

[POC] Add support for custom custom layout width

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors