WordPress.org

Forums

Adamos
Remove "Recent Posts" from Homepage (5 posts)

  1. ansontam
    Member
    Posted 1 year ago #

    Hi Ossie,

    Thanks for creating such a nice theme. Was wondering if you could tell me how to remove the "Recent Posts" from Homepage.

    Regards

    Anson

  2. Template Express
    Member
    Theme Author

    Posted 1 year ago #

    hello,

    open the custom_home.php file and remove the entire section_thumbnails div

  3. dkerswell
    Member
    Posted 11 months ago #

    Hello thanks for the great theme, I have the same problem, what changes can I make to the child theme to do this, I tried commenting out that div but that did not seem to work, see below
    <!--<div class="section_thumbnails group">
    <h3>Recent Posts</h3>

    /*<?php $the_query = new WP_Query(array(
    'showposts' => 2,
    'post__not_in' => get_option("sticky_posts"),
    ));
    ?>
    <?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>
    <div class="col span_1_of_2">
    <article class="recent">
    <h2>"><?php the_title(); ?></h2>
    <?php
    if ( has_post_thumbnail() ) {
    $image_src = wp_get_attachment_image_src( get_post_thumbnail_id(),'featured' );
    echo '<img alt="post" class="imagerct" src="' . $image_src[0] . '">';
    }
    ?>
    <?php echo content(50); ?><div class="thumbs-more-link">"> More</div>-->
    appreciate some help
    Regards
    Deb

  4. bestewar
    Member
    Posted 9 months ago #

    Same problems here. Removed the entire section_thumbnails div and nothing happened. Kinda confusing to say the least, don't even know where it's pulling the code from now that I've cleared my cache. Thoughts?

  5. Template Express
    Member
    Theme Author

    Posted 9 months ago #

    Hello,

    you can add the following style:

    .section_thumbnails {
    display: none;
    }

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.