how can i remove latest post section???
-
index.php so kindly visit Appearance>Editor>index.php
Search Latest news and delete the code. Pro has ability to remove it easily using shortcodes.
thank you…and sorry i just start using WP not a pro
I did this, saved it, but its still there …
Go to Editor and edit index.php
Remove this part of code and save:
<section class=”menu_page” style=”background-color:#ffffff; “>
<div class=”container”>
<div class=”latest-news”><h2><?php _e(‘Latest News’,’skt-white’); ?></h2>
<?php $k = 0; ?>
<?php global $wp_query; ?>
<?php while( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
<?php $k++; ?>
<div class=”news-box <?php if($k%4==0){?>last<?php } ?>”><div class=”news”>
<?php if( has_post_thumbnail()){
$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), ‘large’);
$imgUrl = $large_image_url[0];
} else {
$imgUrl = get_template_directory_uri().’/images/img_404.png’;
}
?>
“><img alt=” ” src=”<?php echo $imgUrl; ?>”>
<h2><?php the_title(); ?></h2>
<div style=”float:left;”><?php echo get_the_date(); ?></div>
<div style=”float:right;color:#cccccc;font-weight:bold;font-size:15px”><img style=”width:auto;float:left;position:relative;top:3px;” src=”<?php echo get_template_directory_uri(); ?>/images/icon-comment.png” /> <?php echo get_comments_number(); ?></div><div class=”clear”></div>
</div>
</div><?php if($k%4==0){ ?><div class=”clear”></div><?php } ?>
<?php endwhile; ?>
<div class=”home-pagination”>
<?php skt_white_pagination(); ?>
</div><!– home-pagination –>
<?php wp_reset_query(); ?>
</div><!– latest-news –>
<div class=”clear”></div>
</div><!– container –>
</section>
The topic ‘how can i remove latest post section???’ is closed to new replies.
