Support » Plugin: Gutenberg » Where’s ‘the wide button’

  • Resolved captainrogers

    (@captainrogers)


    I began reading through the Gutenberg demo and came to the image with the words “Give it a try. Press the “wide” button on the image toolbar.” beneath it. What or where is “the wide button”?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tammie Lister

    (@karmatosed)

    The ‘wide’ option comes when a theme supports that.

    You can read more about that here: https://wordpress.org/gutenberg/handbook/extensibility/theme-support/

    So whomever wrote the demo didn’t think that was worth mentioning? I would have thought that the Twenty Seventeen theme, being one of the defaults supplied with WordPress, would support it.

    Well, same issue here. I would say that this has to be fixed somehow. I’m also on Twenty Seventeen theme and I suppose that demo will work with Gutenberg seamlessly. My WordPress installation is brand-new from docker repo. Missing something on demo page feels like a half-product. Maybe there is something I did wrong that the demo is corrupted. Please let me know. Thanks. Gutenberg is a great plugin, anyway. Love to work with it. Dropping my Microsoft OneNote App. 😉 Nice job!

    Hello,
    I’m happy that you guys are working on Gutenberg.
    Concerning the wide option, I added the following code to the theme’s functions.php and now the “wide” button appears when selecting an image in the editor:

    function reyl_lite_setup_theme_supported_features() {
        add_theme_support( 'editor-color-palette',
            '#a156b4',
            '#d0a5db',
            '#eee',
            '#444'
        );
        add_theme_support( 'align-wide' );
    }
    
    add_action( 'after_setup_theme', 'reyl_lite_setup_theme_supported_features' );

    Is this correct? Because the image isn’t wide in the published page.

    Yes, it works now. Thanks for your advice.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Where’s ‘the wide button’’ is closed to new replies.