Slideshow block: Full width and wide width display shows scaled down images
Jump to most recent technical analysis from June 2022: https://github.com/Automattic/jetpack/issues/12178#issuecomment-1157025213
Steps to reproduce
- Activate a twenty nineteen child theme
- Create a page/post
- Add new Slideshow Block and add one or more large images
- Set display mode to full width
- Publish and view page
What I expected
I expected the images to extend to the edge of the browser window.
What happened instead
The images are displayed as a scaled down version surrounded by grey space.
Note: This happens with wide width display as well.
Screenshot / Video




Other
#1984153-zen
I was able to reproduce this reliably on all the WordPress.com Gutenberg-ready themes on a simple site.
Also reproduced with a fresh jurassic.ninja site:
Screenshot: https://cld.wthms.co/f5JiWQ
I was able to find the thread where we tried to find out more about this bug.
One example from the user's site: https://cld.wthms.co/ZwmZEb
Definitely a bug with the Twenty Nineteen themes.
The thing is that we're making the wrapper full-width but keeping the images with a max-size of 100%. A workaround, for now, is to force this with some custom CSS:
/* Slideshow Full Width block: make the images full width as well */
.wp-block-jetpack-slideshow.alignfull .wp-block-jetpack-slideshow_image {
width: 100vw;
max-width: unset;
object-fit: cover;
}
Result:

Also reported in 2192074-zen on the Olsen theme.
Sent a mod on Edu's code above as a workaround
2516263-zen. Shared @eduardozulian's CSS workaround for now.
Brought up during a Quick Start Session. Provided workaround to user in 2579322-zen
Another report in 2633401-zen. Provided Eduardo's workaround.
The user at #18347729-hc faced the same issue. Provided the CSS from above.
The thing is that we're making the wrapper full-width but keeping the images with a max-size of 100%. A workaround, for now, is to force this with some custom CSS:
/* Slideshow Full Width block: make the images full width as well */ .wp-block-jetpack-slideshow.alignfull .wp-block-jetpack-slideshow_image { width: 100vw; max-width: unset; object-fit: cover; }Result:
![]()
thanks, but not sure why is not taking the fulls size image and it uses a resized version = ?resize=768%2C512
strange and ugly bug
Also reported in #20693968-hc, provided CSS as a workaround
Also reported in #20693968-hc, provided CSS as a workaround
did it work for you?
@neo22s it's not taking the full size because this particular CSS code does not alter how WordPress is loading the image. Try to change your content width to a higher number under Customizer > CSS > Media Width and see if that helps.
Reported on 11677309-hc
function composer_child_setup_theme() {
$GLOBALS['content_width'] = 2000;
}
add_action( 'init', 'composer_child_setup_theme' );
this did work
Another case here: #3112051-zen. Provided CSS workaround.
Another case 3153628-zen. Provided CSS workaround.
Another case with 23161957-hc. Provided CSS workaround.
Another case, 20863523-hc but i had to tweak the CSS a bit for this/
/* Slideshow Full Width block: make the images full width as well #20863523-hc/KD */
.swiper-slide-active .wp-block-jetpack-slideshow_image {
width: 100vw;
max-width: unset;
object-fit: cover;
}
Another case on 25586681-hc. The workaround with the CSS fixed it.
I also would like to add that if you're working with an Atomic site, you might want to disable Performance & speed > Enable site accelerator > Speed up image load times, since when that's active you get a very small image centered in the Slideshow:
