Доброго)
Нуждаюсь в вашей помощь.
Нужно немного изменить то как выглядят новости на главной.
В данный момент там выводится ненужный блок с социальными кнопками.
То есть получается: берется миниатюра, заголовок, текст до тега more и почему то выводится самый нижний блок с социальными кнопками.
Вот эти кнопки и нужно вырезать с главной.
Так выглядит файл index
<?php get_header(); ?>
<div id="primary" class="hfeed clearfix isotope-container">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php zilla_post_before(); ?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<?php zilla_post_start(); ?>
<?php
$format = get_post_format();
get_template_part( 'content', $format);
if( $format == '' || $format == 'gallery' || $format == 'video' || $format == 'audio' ) {
get_template_part( 'content', 'meta' );
}
?>
<?php zilla_post_end(); ?>
</div>
<?php zilla_post_after(); ?>
<?php endwhile; ?>
<?php
$pagination = zilla_get_option('post_pagination_type');
// force pagination in Opera
global $is_opera;
if( $pagination == 'loadmore' && !$is_opera ) {
if( $wp_query->max_num_pages > 1 ) { ?>
<a href="#" id="load-more" data-width="260"><?php _e('Подгрузить ещё'); ?></a>
<?php }
} else { ?>
<div class="navigation page-navigation">
<div class="nav-next">
<?php next_posts_link(__('Older Entries', 'framework')); ?>
</div>
<div class="nav-previous">
<?php previous_posts_link(__('Newer Entries', 'framework')) ?>
</div>
</div>
<?php } ?>
<?php else : ?>
<div id="post-0" <?php post_class(); ?>>
<h2 class="entry-title"><?php _e('Ошибка 404.') ?></h2>
<div class="entry-content">
<p><?php _e("Упс! Такого нет.") ?></p>
</div>
</div>
<?php endif; ?>
</div>
<?php get_footer(); ?>