Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #18279

    Hello there,

    We want to include a featured image for each of the blog posts (on the homepage as a thumbnail) but we don’t want the featured image to display at the top of each blog post. Tried to view single.php and there’s no option to remove it from the loop.

    website – http://christinekawasakichan.com

    Thanks

    #98870

    Hi,

    Look for includes > loop-index.php and find this code

    //echo slideshow
    echo $sliderHtml;

    Remove it.

    Regards,

    Ismael

    #98871

    Great.. thank you

    #98872

    Hi Eristine,

    Glad we could help.

    Cheers,

    Ismael

    #98873

    Hi Ismael,

    I’m looking to do the same thing and removed echo $sliderHtml; from the loop-index.php – when I removed the first one nothing happened and when I removed the second one I got this Parse error.

    Parse error: syntax error, unexpected ‘{‘ in /clientdata/apache-www/e/t/etool.net.au/www/wp-content/themes/corona/includes/loop-index.php on line 20

    On this and individual blog post pages – http://etool.net.au/eblog/

    I copied and pasted the whole code back in and can’t seem to find the unexpected ‘{‘

    Can you help me fix it and offer a solution to get rid of the preview image on the blog post please?

    Thanks, Siobhan

    #98874

    Hello,

    First, this is a topic for Eunoia. Please remove all the changes you made then follow this one.

    Open includes > loop-index.php then remove everything. Replace it with this code

    <?php
    global $avia_config;
    if(isset($avia_config['new_query'])) { query_posts($avia_config['new_query']); }

    // check if we got posts to display:
    if (have_posts()) :

    while (have_posts()) : the_post();
    $slider = new avia_slideshow(get_the_ID());

    ?>

    <div class='post-entry'>

    <h1 class='post-title'>
    <a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link:','avia_framework')?> <?php the_title(); ?>"><?php the_title(); ?></a>
    </h1>

    <!--meta info-->
    <div class="blog-meta">

    <span class='post-meta-infos'>
    <span class='date-container minor-meta'><?php the_time('d M Y') ?></span>
    <span class='text-sep'>/</span>
    <span class='comment-container minor-meta'>
    <?php comments_popup_link("<strong>0</strong> ".__('Comments','avia_framework'),
    "<strong>1</strong> ".__('Comment' ,'avia_framework'),
    "<strong>%</strong> ".__('Comments','avia_framework'),'comments-link',
    "<strong></strong> ".__('Comments Off','avia_framework')); ?>
    </span>
    <span class='text-sep'>/</span>

    <?php
    $cats = get_the_category();

    if(!empty($cats))
    {
    echo '<span class="blog-categories minor-meta">'.__('in ','avia_framework');
    the_category(', ');
    echo '</span><span class="text-sep">/</span>';
    }

    $portfolio_cats = get_the_term_list( get_the_ID(), 'portfolio_entries', '', ', ','');

    if($portfolio_cats && !is_object($portfolio_cats))
    {
    echo '<span class="blog-categories minor-meta">'.__('in ','avia_framework');
    echo $portfolio_cats;
    echo '</span><span class="text-sep">/</span>';
    }

    echo '<span class="blog-author minor-meta">'.__('by ','avia_framework');
    the_author_posts_link();
    echo '</span>';

    ?>

    </span>

    </div><!--end meta info-->

    <div class="entry-content">

    <?php

    the_content(__('Read more &rarr;','avia_framework'));

    if(has_tag() && is_single())
    {
    echo '<span class="blog-tags">';
    echo the_tags('<strong>'.__('Tags: ','avia_framework').'</strong><span>');
    echo '</span></span>';
    }
    ?>

    </div>

    </div><!--end post-entry-->

    <?php
    endwhile;
    else:
    ?>

    <div class="entry">
    <h1 class='post-title'><?php _e('Nothing Found', 'avia_framework'); ?></h1>
    <p><?php _e('Sorry, no posts matched your criteria', 'avia_framework'); ?></p>
    </div>
    <?php

    endif;

    if(!isset($avia_config['remove_pagination'] ))
    echo avia_pagination();
    ?>

    Regards,

    Ismael

    #98875

    Hi Ismael,

    Sorry I’m in the wrong forum!

    Thanks for the code – it has removed the featured image from all posts, even the extract and has also expanded all posts.

    I’m trying to remove the preview image just from the blog post itself so that the text goes across two thirds with a sidebar on the right and on the blog landing page, just have the post extract with a featured image.

    Is this possible?

    Many thanks, Siobhan

    #98876

    Hi,

    I’ll start a new thread in Corona as I’ve looked through the old posts about this issue and can’t find the resolution.

    Thanks, Siobhan

    #98877
Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘How can I disable the featured image from being displayed within the actual post’ is closed to new replies.