add new banner
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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 );
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user