I was using Owl Carousel to deploy slides to the site, and this time I was advised that the content width for mobile-friendly support exceeds the screen size.
After a lot of examination to see if it's a different part, I concluded that if I delete the div in Owl Carouse, the mobile-friendly result will be cleared, so the slide part is still a problem.
I have looked into various sites, but there were only opinions such as Owl Carousel being responsive, and I have not seen many cases of errors.
Is there a good solution?
<div class="container-fluid mb15">
<div class="row">
<div class="owl-carousel">
<?php
$rows=get_field('***',***);
if($rows){
foreach($rows as$row){?>
<div>
<?php if(!empty($row['url']))): ?>
<a href="<?phpecho$row['url'];?>">
<?php echo_get_attachment_image($row['image']['ID'], 'full', $row['image']['alt']);?>
</a>
<?phpelse:?>
<?php echo_get_attachment_image($row['image']['ID'], 'full', $row['image']['alt']);?>
<?php endif;?>
</div>
<?php
}
}
?>
</div>
</div>
I'm doing this, but can't the slides fit inside the content width screen?
I was worried about the same phenomenon, but
<div class="owl-carousel" style="overflow:hidden;">
That's a quick fix.
358 Understanding How to Configure Google API Key
356 Where is the memory area of the reference static variable in c#?
350 Environment dependent characters? are displayed.
353 AttributeError at /admin/r/31/4/ 'NoneType' object has no attribute 'startswith'
368 I want to change the format (date and time display) of the legend in chronological order.
© 2023 OneMinuteCode. All rights reserved.