Gutenberg: Gutenberg demo shows a full-width Cover Image, but this option is not present in the UI

Created on 16 Nov 2017  路  6Comments  路  Source: WordPress/gutenberg

2017-11-16t15 57 06 0800

It appears that it is no longer possible to create a full-width cover image via the editing interface. Maybe I am just missing the way to do it, but if it is really no longer possible, then this feature should be removed from the demo content and its CSS rules should be removed.

[Status] Duplicate [Type] Bug

All 6 comments

In my opinion it should definitely be possible. This is pretty common design pattern and it would be inline with image block.

See also #2650.

@nylen You can set 'wide-images' => true, in add_theme_support( 'gutenberg' ) and after that you can set full width cover image. But alignwide or alignfull are still missing in the markup. Those should be added.

I'm not aware of the context behind making this available on a per-theme basis, but it sounds sensible.

So I think the only thing to do here is to remove the full-width cover image from the demo content, since this can't be recreated on a standard install.

I'm not aware of the context behind making this available on a per-theme basis, but it sounds sensible.

It's because Gutenberg can't know is there room for full width or wide, and what that even means on theme by theme. There can be sidebars in the left or right etc.

Closing as duplicate of #2595.

/**

  • Register support for Gutenberg wide images in your theme
    */
    function mytheme_setup() {
    add_theme_support( 'align-wide' );
    }
    add_action( 'after_setup_theme', 'mytheme_setup' );

https://weblines.com.au/gutenberg-blocks-wide-alignment-full-width/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aduth picture aduth  路  3Comments

wpalchemist picture wpalchemist  路  3Comments

aaronjorbin picture aaronjorbin  路  3Comments

spocke picture spocke  路  3Comments

jasmussen picture jasmussen  路  3Comments