• Hello,

    I am using SKT White, and have been trying to delete the “latest news” section, but I,m having an issue doing some. I’ve gone into the editor and deleted anything to do with posts or a blog, and still, it’s there no matter what I do. How can I get rid of it? I really like this theme, but this latest news bit breaks it completely for me.

    -Jordan

Viewing 1 replies (of 1 total)
  • 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>

Viewing 1 replies (of 1 total)
  • The topic ‘Deleting Latest News’ is closed to new replies.