Jetpack adding inline CSS to slider
-
Hi,
I am having trouble with the Jetpack slider added via the Gutenberg block editor. When the slider loads on a portrait tablet its width is 100% of the viewport. When the tablet is rotated 90 degrees to landscape, the slider remains at the same width as the portrait width, adding white space either side of the slider.
From inspecting the code, it seems Jetpack is adding inline CSS to the ul > li elements which contain the slider images. Specifically I believe the issue is a ‘width: XXXXpx’ property being added, where the ‘XXXXpx’ width is always the width of the viewport. I think to resolve the issue I need the width to be set to ‘100%’.
Does anyone know any way I can disable inline CSS on the Jetpack slider? That way I could add the CSS rules via my own stylesheet. I have tried using !important to override the inline CSS but to no avail ??
I have also disabled Site Accelerator and Lazy Loading in the Jetpack settings.Thanks,
Chris
- The topic ‘Jetpack adding inline CSS to slider’ is closed to new replies.