correct template interview

This commit is contained in:
argoexpert press
2025-05-13 00:12:41 +03:00
parent fdaa02c861
commit 7310801599
3 changed files with 18 additions and 7 deletions

View File

@@ -59,6 +59,5 @@
</div>
<?php custom_pagination(); ?>
</div>
<?php get_footer(); ?>

View File

@@ -52,14 +52,19 @@
display: none !important;
}
@media (max-width: 767px) {
.mobile {
display: inherit !important;
}
}
@media (max-width: 1024px) {
.desktop {
display: none !important;
}
.mobile {
display: inherit !important;
}
}
@media (max-width: 1300px) {

View File

@@ -11,8 +11,15 @@
<?php endif; ?>
<?php get_template_part('partials/latest-interview-post'); ?>
<?php
if ( in_category('interviews') ) {
echo '<div class="desktop">';
get_template_part('partials/latest-interview-post');
echo '</div>';
} else {
get_template_part('partials/latest-interview-post');
}
?>
<?php if (is_front_page()) : ?>
<div class="most-read mobile">
<div class="most-read__inner">