• Resolved Tammy

    (@tracsd)


    How do I get rid of the featured posts on the homepage? Also, how do I get rid of the latest events/news on the homepage. I want these completely omitted. I have not created any posts and can’t seem to figure out how to get rid of what is already there. Thank you.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Have you visited the “Theme Options” link in “Appearance” from the dashboard? It looks like there’s a tab for “Home page” that might be able to help with removing the “Featured Posts” and “Events” Sections.

    Thread Starter Tammy

    (@tracsd)

    Thank you for your response Bryan. I have looked through all of the options in the “Theme Options” link. There are different layouts that are offered, but all of them include the posts. There is even an link on this page for the category, but the only options I see for both are to add posts or add categories.

    are all the dropdowns for posts/categories set to “—choose—” ?

    Thread Starter Tammy

    (@tracsd)

    They are all on choose. With the slider in order to move those images I had to create posts and add images. The problem with the featured posts is that I don’t intend to replace them. Thank you!

    Unfortunately – it doesn’t look like this is possible from the panel. Are you set up with a Child theme, or a custom css plugin? if so, paste the following in:

    #mid-section #featured-post-1, #mid-section #featured-post-2, #mid-section #featured-post-3 {
    display: none;
    }

    That should hide the featured post area.

    For the events, I think the best solution would be to choose the template with out a sidebar.

    Let me know how that works

    Theme Author Access Keys

    (@access-keys)

    At first if you haven’t created any post of category and selected though theme option panel then a dummy contents appears.. it will be replaced as soon as you create content and assign.

    The featured post is the main part of the theme so we don’t have provided options to remove it

    And about latest event/news section at home page, you don’t need to have the same section specifically. you can have other section like Latest ….
    It depends on the name of the category that you choose for this section.

    If you don’t want featured section to show then you can do as @bryan said.

    We will address this in next update.. we are coming with next update very soon with more features.

    Thread Starter Tammy

    (@tracsd)

    Thank you for your responses and your help Bryan. I have created a child theme, and it does work that way.

    Thank you also to Access Keys. Nice theme.

    Theme Author Access Keys

    (@access-keys)

    Thank you..

    Awesome! Glad to help!

    Tracsd

    To remove the Events and Welcome, I edited the index-one.php (No time to make a child theme).

    Remove the following code (or you could put it after the Featured Posts (an option I liked, rearranging the order so the fancy parts showed ‘above the fold’)

    <section id=”top-section” class=”ak-container”>
    <div id=”welcome-text” class=”clearfix”>
    <?php

    if(!empty($accesspresslite_welcome_post_id)){

    $query1 = new WP_Query( ‘p=’.$accesspresslite_welcome_post_id );
    while ($query1->have_posts()) : $query1->the_post(); ?>

    <h1>“><?php the_title(); ?></h1>

    <?php
    if( has_post_thumbnail() ){
    $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘full’, false );
    ?>

    <figure class=”welcome-text-image”>
    “>
    <img src=”<?php echo $image[0]; ?>” alt=”<?php the_title(); ?>”>

    </figure>
    <?php } ?>

    <div class=”welcome-detail<?php if( !has_post_thumbnail() ){ echo ” welcome-detail-full-width”; } ?>”>
    <p><?php echo accesspresslite_excerpt( get_the_content() , $accesspresslite_welcome_post_char ) ?></p>
    <?php if(!empty($accesspresslite_settings[‘welcome_post_readmore’])){?>
    ” class=”read-more bttn”><?php echo $accesspresslite_settings[‘welcome_post_readmore’]; ?>
    <?php } ?>
    </div>

    <?php endwhile;
    wp_reset_postdata();
    }

    else{ ?>

    <h1>Welcome Message</h1>
    <figure class=”welcome-text-image”>

    <img src=”<?php echo get_template_directory_uri(); ?>/images/demo/welcome-image.jpg” alt=”welcome”>

    </figure>

    <div class=”welcome-detail”>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.</p>
    Read More
    </div>

    <?php } ?>
    </div>

    <div id=”latest-events”>

    <?php
    if(!empty($accesspresslite_event_category)){

    $loop = new WP_Query( array(
    ‘cat’ => $accesspresslite_event_category,
    ‘posts_per_page’ => $accesspresslite_show_event_number,
    )); ?>

    <h1>“><?php echo get_cat_name($accesspresslite_event_category); ?></h1>

    <?php while ($loop->have_posts()) : $loop->the_post(); ?>

    <?php
    $accesspresslite_event_day = get_post_meta( $post->ID, ‘accesspresslite_event_day’, true );
    $accesspresslite_event_month = get_post_meta( $post->ID, ‘accesspresslite_event_month’, true );
    $accesspresslite_event_year = get_post_meta( $post->ID, ‘accesspresslite_event_year’, true );
    ?>

    <div class=”event-list clearfix”>

    <figure class=”event-thumbnail”>
    “>
    <?php
    if( has_post_thumbnail() ){
    $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘event-thumbnail’, false );
    ?>
    <img src=”<?php echo $image[0]; ?>” alt=”<?php the_title(); ?>”>
    <?php } else { ?>
    <img src=”<?php echo get_template_directory_uri(); ?>/images/demo/event-fallback.jpg” alt=”<?php the_title(); ?>”>
    <?php } ?>

    <?php if(!empty($accesspresslite_event_day) || !empty($accesspresslite_event_month) || !empty($accesspresslite_event_year)){ ?>
    <div class=”event-date”>
    <span class=”event-date-day”><?php echo $accesspresslite_event_day; ?> <?php echo $accesspresslite_event_month; ?></span>
    <span class=”event-date-month”><?php echo $accesspresslite_event_year; ?></span>
    </div>
    <?php }else {?>
    <div class=”event-date”>
    <span class=”event-date-day”><?php echo get_the_date(‘j’); ?></span>
    <span class=”event-date-month”><?php echo get_the_date(‘M’); ?></span>
    </div>
    <?php } ?>

    </figure>

    <div class=”event-detail”>
    <h4 class=”event-title”>
    “><?php the_title(); ?>
    </h4>

    <div class=”event-excerpt”>
    <?php echo accesspresslite_excerpt( get_the_content() , 100 ) ?>
    </div>
    </div>
    </div>
    <?php endwhile; ?>
    <?php wp_reset_postdata();

    } else { ?>

    <h1>Latest Events/News</h1>
    <?php for ( $event_count=1 ; $event_count < 4 ; $event_count++ ) { ?>
    <div class=”event-list clearfix”>
    <figure class=”event-thumbnail”>
    <img src=”<?php echo get_template_directory_uri().’/images/demo/event-‘.$event_count.’.jpg’; ?>” alt=”<?php echo ‘event’.$event_count; ?>”>
    <div class=”event-date”>
    <span class=”event-date-day”><?php echo $event_count; ?></span>
    <span class=”event-date-month”><?php echo “Mar”; ?></span>
    </div>

    </figure>

    <div class=”event-detail”>
    <h4 class=”event-title”>
    Title of the event-<?php echo $event_count; ?>
    </h4>

    <div class=”event-excerpt”>
    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor…
    </div>
    </div>
    </div>
    <?php }
    } ?>
    </div>
    </section>

    Theme Author Access Keys

    (@access-keys)

    Great work ?? @grumb

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Featured Posts’ is closed to new replies.