jusch23
Forum Replies Created
-
Forum: Plugins
In reply to: [Getwid - Gutenberg Blocks] Image slider with custom linksHi @dimned,
here is a link to the website: SV Weidach. The slider is at the bottom. When you disable my custom style setting, which sets width: auto, the images aren’t centered anymore.
- This reply was modified 5 years, 4 months ago by jusch23.
Forum: Plugins
In reply to: [Getwid - Gutenberg Blocks] Image slider with custom links@motopress I overwrote the width with “auto”, because with width=100% my image is not centered. My images without a custom link are centered as desired. I think the css flex property (justify-content: center;) of the following css selector is not applied correctly on the children elements (<figure>) of the anchor tag of the custom link:
.wp-block-getwid-images-slider .wp-block-getwid-images-slider__item { display: flex; height: auto; justify-content: center; align-items: center; position: relative; }HTML:
<div class="wp-block-getwid-images-slider__item slick-slide slick-active" style="width: 378px;" data-slick-index="1" aria-hidden="false" role="tabpanel" id="slick-slide01" aria-describedby="slick-slide-control01"> <a href="link" target="_blank" rel="noreferrer noopener" tabindex="0"> <figure> <!-- not centered --> <img src="" alt="" data-id="1234" data-link="" data-link-target="_blank" data-link-rel="noreferrer noopener" data-original-link="" data-custom-link="" class="wp-block-getwid-images-slider__image wp-image-1234" srcset=""> </figure> </a> </div>Could you try to reproduce this? Alternatively, I think the custom link anchor could be displayed as flex and the justify-content set to center. But I’m not that into your plugin, only some guesses from me.
If the problem can be solved differently or the problem is caused by my theme (astra), please let me know. Thank you.