Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gutenberg: set block_width global #132

Open
nickcernis opened this issue Nov 13, 2018 · 0 comments
Open

Gutenberg: set block_width global #132

nickcernis opened this issue Nov 13, 2018 · 0 comments
Milestone

Comments

@nickcernis
Copy link
Collaborator

Gutenberg has an upcoming block_width global that child themes will need to override.

Example:

$GLOBALS['block_width'] = array(
          'default' => 640,
          'wide'    => 800,
          'full'    => 1024,
);

Or the proposal in this comment:

set_block_width(
    array (
        'default' => 600,
        'wide' => 780,
        'full' => 1024,
    )
);

I'm opening this to track the progress of this feature so we can add the relevant function call/global override once it's merged in WP core/Gutenberg.

For reference:

@nickcernis nickcernis added this to the Backlog milestone Dec 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant