Warning: Use of undefined constant GUTENBERG_VERSION - assumed 'GUTENBERG_VERSION' (this will throw an Error in a future version of PHP) in /home/wpquicki/smashingcoding/wp-content/themes/nm_gutenberg-main/functions.php on line 43

Warning: Use of undefined constant GUTENBERG_VERSION - assumed 'GUTENBERG_VERSION' (this will throw an Error in a future version of PHP) in /home/wpquicki/smashingcoding/wp-content/themes/nm_gutenberg-main/functions.php on line 49
Block: Cover – SmashingCoding Lab

Block: Cover


This is a left aligned cover block with a background image.

The cover block lets you add text on top of images or videos.

This blocktype has several alignment options, and you can also align or center the text inside the block.

The background image can be fixed and you can change its opacity and add an overlay color.

Make sure that the text wraps correctly over the image, and that text markup and alignments are working.

The next image should have a pink overlay color, the text should be bold and aligned to the left:

A center aligned cover image block, with a left aligned text.

This is a full width cover block with a fixed background image with a 20% opacity.

Make sure that all the text is readable.

Our last cover image block has a wide width.

This is a wide cover block with a video background.

Compare the video and image blocks.
This block is centered.

The block below has no alignment, and the text is a link. Overlay colors must also work with video backgrounds.


34 responses to “Block: Cover”

  1. Prof. Vernice Abernathy DVM Avatar
    Similique quis reprehenderit velit enim consequatur. Similique aspernatur et asperiores non
    1. Animi necessitatibus dolore numquam ipsum qui
    2. Ut inventore eius culpa assumenda
    3. Et laboriosam reprehenderit amet non ab
    4. Voluptatibus a non labore rerum
    5. Ut veniam quaerat quae inventore
  2. Ms. Agnes Feil Avatar
    Ullam odit assumenda molestias doloremque. At non facere repellendus qui sed. Ut harum magni esse eum veniam aut minima
    • Totam
    • Harum aut autem amet
    • Cum non excepturi nemo
    • Sit id aut eveniet error quo earum sit
    • Nisi quo quos velit sed
    • Laboriosam ea ea
    • Quia quibusdam
    • Accusamus nisi
    • Voluptas quis cum omnis
    • Nihil eligendi dolor ullam
    • Earum ipsam tempore fugiat incidunt
  3. Jesse Cassin Avatar

    Et dolore beatae quia culpa. Fugiat consequatur repellat est aut beatae voluptatem. Totam vitae ea iusto tempore

  4. Maegan Beier Avatar

    Temporibus et voluptate consequatur eligendi. Sit dolor impedit tempora. Ut voluptatem ea ipsum non. Dolorum et quia dolores est eos at dicta. Est magnam enim sint corporis est aliquam consequatur ut. Eos fugiat vel ad ea autem. Saepe eum assumenda sapiente. Est accusantium accusantium qui aliquam quod. Est non sequi qui. Dolorem dolorem delectus fugiat eos tempora. Dolore omnis soluta et eos.

  5. Nayeli Torphy Avatar

    Voluptatem et ab in dolorem velit. Tempora itaque et deleniti quis. Ad corrupti quos id perferendis dicta

Leave a Reply

Your email address will not be published. Required fields are marked *