• Resolved mch0lic

    (@mch0lic)


    I’ve been checking Gutenberg from time to time (without spending too much time) and literally the only thing I’m looking for is full width background (image, or solid color) with boxed content. Is this already available or it’s still in the works?

    Here is simple example what I mean:

    
    <div style="background-color: ...">
      <div class="container">
        <!-- lets say 1170px -->
        <p>Lorem ipsum</p>
      </div>
    </div>
    

    I don’t expect this to work out of the box with standard themes, but is it possible with custom themes / some modifications to exiting ones?

    Thanks!

Viewing 1 replies (of 1 total)
  • Moderator Marius L. J.

    (@clorith)

    Hi,

    This is possible for images at the very least, you can provide a cover image, it’s not enabled by default, but requires you to add theme support for it:

    
    add_theme_support( 'gutenberg', array(
        'wide-images' => true,
    ) );
    

    Of course it may require styling in the theme as well, the classes used are alignwide and alignfull, which your theme will need to support.

Viewing 1 replies (of 1 total)
  • The topic ‘Block background color’ is closed to new replies.