• If I add a cover block inside of the slide, I’m unable to set it to “full width.” The cover block has functionality that the image block options do not (like overlay etc.). I think your “slide” options use the same options as an image block.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Fabian Todt

    (@gaambo)

    I can confirm this in a quick test. The slide block does not support the align/alignWide block support because (if I remember correctly) it somehow messed with swiper styles.

    But I tried to make the slide block work similar to the cover – it has most of the same block supports: background color, background image, spacing, dimensions, content position etc. Is there something you are missing?

    Thread Starter brad hogan

    (@bradley2083)

    Hey there. The missing block settings I noticed were the overlay and overlay opacity options which are in the cover block but not in image blocks when images are set as background images.

    Plugin Author Fabian Todt

    (@gaambo)

    I understand, thank you for the feedback! I looked into it and overlay UI is kind of complex and something I don’t want to implement in the custom block myself.

    I will have a look into better supporting the cover block inside the slider. As a quick workaround, you can put a cover block inside a slide and apply the following CSS in your (child) theme/custom CSS in site editor:

    .wp-block-good-slider .wp-block-good-slider__slide > .wp-block-cover {
    width: 100%;
    align-self: stretch;
    }

    This will make a cover block stretch the full width/height of your slide. I have not tested this extensively. But in a quick test it worked well enough.

    I’ve also opened a GitHub issue here and here to track this. But I can’t promise any timeline atm. PRs are welcome though 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Cover block width not working properly’ is closed to new replies.