WordPress
5
Вклад в тег
<div class="slider grid-row" >
while ( $loop->have_posts() ): $loop->the_post(); ?>
<div class="grid-col">
<div class="img-wrapper">
<?php if ( has_post_thumbnail()) {
the_post_thumbnail('full','class=img-fluid');
} ?>
</div>
<?php endwhile; wp_reset_postdata(); ?>
</div>
{
breakpoint: 480,
settings: "unslick"
}
@media (max-width: 480px) {
.product-row {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -15px;
margin-left: -15px;
}
.product-col-6 {
-webkit-box-flex: 0;
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
position: relative;
width: 100%;
min-height: 1px;
padding-right: 15px;
padding-left: 15px;
}
}