Миниатюры в записи
-
Всем привет! Я использую премиум тему на своем сайте на движке Вордпресс. В настройках темы миниатюры для записи можно сделать большими и средними — но оба варианта выглядят очень большими, а так же миниатюры расположены не по центру. Я нашел в редакторе файл, который отвечает за вывод записи — там есть код вывода миниатюры, но что изменить в этом коде чтобы уменьшить миниатюры и выставить их по центру — я не знаю…Помогите, плиз.
Вот код:
<article id=»post-<?php the_ID(); ?>» <?php post_class(‘introfx’); ?>>
<div class=»inner_p»>
<?php if ( has_post_thumbnail() ): ?>
<?php if ( ot_get_option( ‘posts_thumbs’ ) != ‘2’ ): ?>
<div class=»b_block clearfix»>
<div class=»post_thumbnail fully»>
<div class=»item wgr»><div class=»featured_thumb mb»>
» title=»<?php the_title(); ?>»>
<img src=»<?php $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), ‘full’); echo $src[0]; ?>» alt=»<?php the_title(); ?>»>
<?php format_icon(); ?>
<h3 class=»post-title entry-title»><?php the_title(); ?></h3>
<?php get_review(); ?>
<div class=»details»>
<span class=»s_category»>
» rel=»date»><i class=»icon-calendar mi»></i><?php the_time(‘j M, Y’); ?><span class=»morely mid»><i class=»icon-folder-open mi»></i><?php the_category(‘, ‘); ?></span>
<?php if(function_exists(‘the_views’)) { ?><span class=»mid»><i class=»fa fa-eye mi»></i><?php the_views(); ?></span><?php } ?>
<?php if( function_exists(‘zilla_likes’) ) zilla_likes(); ?>
</span>
<?php if ( comments_open() ): ?>
<span class=»more_meta»></span>
<?php endif; ?>
</div><!— /details —>
</div>
</div><!— /item —>
</div><!— /thumbnail —><?php if (ot_get_option(‘excerpt-length’) != ‘0’): ?>
<?php the_excerpt(); ?>
<?php endif; ?>
</div><!—/b block —><?php else: ?>
<div class=»b_block medium_thumb clearfix»>
<div class=»post_thumbnail»>
<div class=»item»>
<div class=»featured_thumb»>
» title=»<?php the_title(); ?>»>
<img src=»<?php $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), ‘carousel-block’, false, » ); echo $src[0]; ?>» alt=»<?php the_title(); ?>»>
<?phpif (class_exists(‘MultiPostThumbnails’)) :
MultiPostThumbnails::the_post_thumbnail(get_post_type(), ‘secondary-image’);
endif;
?> <?php format_icon(); ?>
<?php get_review(); ?>
</div>
</div><!— /item —>
</div><!— /thumbnail —><h3 class=»post-title entry-title»>» title=»<?php the_title(); ?>»><?php the_title(); ?></h3>
<div class=»details mb»>
<span class=»s_category»>
» rel=»date»><i class=»icon-calendar mi»></i><?php the_time(‘j M, Y’); ?>
<span class=»morely mid»><i class=»icon-folder-open mi»></i><?php the_category(‘, ‘); ?></span>
<?php if(function_exists(‘the_views’)) { ?><span class=»mid»><i class=»fa fa-eye mi»></i><?php the_views(); ?></span><?php } ?>
<?php if( function_exists(‘zilla_likes’) ) zilla_likes(); ?>
</span>
<?php if ( comments_open() ): ?>
<span class=»more_meta»>
«><span><i class=»icon-message mi»></i><?php comments_number( ‘0’, ‘1’, ‘%’ ); ?></span>
</span>
<?php endif; ?>
</div><!— /details —><?php if (ot_get_option(‘excerpt-length’) != ‘0’): ?>
<?php the_excerpt(); ?>
<?php endif; ?>
</div><!—/b block —><?php endif; ?>
<?php else : ?>
<div class=»b_title»><h3 class=»post-title entry-title»>» rel=»bookmark» title=»<?php the_title(); ?>»><?php the_title(); ?></h3></div>
<div class=»b_block r_post clearfix»>
<div class=»details clearfix»>
<span class=»s_category»>
» rel=»date»><i class=»icon-calendar mi»></i><?php the_time(‘j M, Y’); ?>
<span class=»morely mid»><i class=»icon-folder-open mi»></i><?php the_category(‘, ‘); ?></span>
<?php if(function_exists(‘the_views’)) { ?><span class=»mid»><i class=»fa fa-eye mi»></i><?php the_views(); ?></span><?php } ?>
<?php if( function_exists(‘zilla_likes’) ) zilla_likes(); ?>
</span>
<?php if ( comments_open() ): ?>
<span class=»more_meta»>
«><span><i class=»icon-message mi»></i><?php comments_number( ‘0’, ‘1’, ‘%’ ); ?></span>
</span>
<?php endif; ?>
</div><!— /details —><?php if (ot_get_option(‘excerpt-length’) != ‘0’): ?>
<?php the_excerpt(); ?>
<?php endif; ?>
</div><!—/b block —>
<?php endif; ?>
</div>
</article><!—/.post—>
- Тема «Миниатюры в записи» закрыта для новых ответов.