How long before images are being replaced?
-
I have installed and run the plugin yesterday. Fixed all errors, and saved about 500mb of space. Amazing plugin, BUT, it doesn’t seem to use the smaller images?
On the website https://detskerisilkeborg.dk/, you can inspect the first vertical image with class
frontpage_image
, and see that it’s still using the .jpg file as a background-image.I’m using the Dynamic Featured Image plugin to be able to add multiple featured images to a post, could this be the problem?
This is the code I use on the front page:
<?php $featured_images = $dynamic_featured_image->get_featured_images($post->ID); if ($featured_images) { ?> <div class="frontpage_image" style="background: url('<?php echo $featured_images[0]['full']; ?>') center center; background-size: cover;"> @include('partials.image-overlay') </div> <?php } ?>
(of course with an
else
as well)The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How long before images are being replaced?’ is closed to new replies.