add new banner

This commit is contained in:
2021-12-01 17:44:40 +03:00
parent 2026095ca1
commit 989119aead
2 changed files with 18 additions and 4 deletions

View File

@@ -75,8 +75,8 @@
</div> </div>
<div class="right-info"> <div class="right-info">
<a href="https://vetandlife.ru/parthers/fgbu-vgnki-okazyvaet-uslugi-po-issledova/"> <a href="https://vetandlife.ru/parthers/v-fgbu-vgnki-razrabotan-metod-odnovremennogo-opredeleniya-v-kormah-bolee-120-lekarstvennyh-sredstv-primenyaemyh-v-zhivotnovodstve-antibiotikov-i-antiprotozojnyh-preparatov/">
<img src="https://vetandlife.ru/wp-content/uploads/2021/10/vgnki_240x400.jpg" width="240" height="400" /> <img src="https://vetandlife.ru/wp-content/uploads/2021/12/vgnki_dec_240x400-1.jpg" width="240" height="400" />
</a> </a>
</div> </div>
@@ -86,7 +86,7 @@
<?php get_template_part( '/blocks/zakons');?> <?php get_template_part( '/blocks/zakons');?>
<?php //include VIJ_CACHE.'zakons.html';?> <?php //include VIJ_CACHE.'zakons.html';?>
<?//get_template_part( '/blocks/mosts', null, ['subclass' => '']);?> <?get_template_part( '/blocks/mosts', null, ['subclass' => '']);?>
<?get_template_part( '/blocks/mosts', null, ['subclass' => 'mob-lite']);?> <?get_template_part( '/blocks/mosts', null, ['subclass' => 'mob-lite']);?>
<?//php include VIJ_CACHE.'mosts.html';?> <?//php include VIJ_CACHE.'mosts.html';?>
</div> </div>

View File

@@ -433,3 +433,17 @@ function filter_nav_menu_item_title( $title, $item, $args, $depth ) {
return $title; return $title;
} }
add_action( 'pre_get_posts', function ($query) {
if ( ! is_admin() && $query->is_main_query() ) {
// не админка и основной цикл страницы
if ( is_category( 'arkhiv' ) ) {
$query->set( 'posts_per_page', 9 );
}
}
});