home-big-thumbnal on mobile
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1871,6 +1871,11 @@ $padd: 2rem;
|
||||
padding: 0;
|
||||
|
||||
img.attachment-single-thumbnail {
|
||||
//use home-big-thumbnail on mobile
|
||||
display: none;
|
||||
}
|
||||
|
||||
img.attachment-home-big-thumbnail {
|
||||
// post thumbnail on home
|
||||
height: 75vh;
|
||||
width: 100vw;
|
||||
@@ -1972,9 +1977,13 @@ $padd: 2rem;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
|
||||
img.attachment-home-big-thumbnail {
|
||||
display: none;
|
||||
}
|
||||
|
||||
img.attachment-single-thumbnail {
|
||||
// post thumbnail on home
|
||||
|
||||
display: block;
|
||||
object-fit: cover;
|
||||
padding: 0;
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
<?php if (has_post_thumbnail()): // Check if Thumbnail exists ?>
|
||||
<div class="thumbnailwrapper">
|
||||
<?php the_post_thumbnail('single-thumbnail'); ?>
|
||||
<?php the_post_thumbnail('home-big-thumbnail'); ?>
|
||||
</div>
|
||||
|
||||
<?php endif;?>
|
||||
|
||||
Reference in New Issue
Block a user